Skip to content

Commit

Permalink
adding $ to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
melonrush13 authored and frodopwns committed Oct 10, 2019
1 parent 6f8bb5d commit 62e2995
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/azuresql/sql.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure SQL Operator

## Resources supported
## Resources Supported

1. Azure SQL server
2. SQL database
Expand All @@ -13,37 +13,37 @@

Create a resource group by running the following yaml file. Update the name variable to your preferred resource group name.

```kubectl create -f config/samples/azure_v1_resourcegroup.yaml```
```$ kubectl create -f config/samples/azure_v1_resourcegroup.yaml```

### 2. Create SQL resources

Create your SQL resources by running the following yaml files. Update the resource group name, and SQL resource names to your preferred names.

```kubectl create -f config/samples/azure_v1_sqldatabase.yaml```
- ```$ kubectl create -f config/samples/azure_v1_sqldatabase.yaml```

```kubectl create -f config/samples/azure_v1_sqlfirewallrule.yaml```
- ```$ kubectl create -f config/samples/azure_v1_sqlfirewallrule.yaml```

```kubectl create -f config/samples/azure_v1_sqlserver.yaml```
- ```$ kubectl create -f config/samples/azure_v1_sqlserver.yaml```

## Updating SQL Resources

### View SQL Resources

To view your created SQL resources, such as sqlserver, run the following command:

`k get sqlserver`
`$ k get sqlserver`

Your servers should be displayed with their name and age.

### Delete a SQL Resource

To delete an existing resource from Kubernetes and Azure, such as SQL server, run:

`k edit sqlserver $sqlservername`
`$ k edit sqlserver $sqlservername`

Remove the lines under the finalizer, and then delete the sql server instance:

`k delete sqlserver $sqlservername`
`$ k delete sqlserver $sqlservername`

The following message should appear:

Expand Down

0 comments on commit 62e2995

Please sign in to comment.