Skip to content

Commit 4e83b58

Browse files
authored
formatting
1 parent 0db84a2 commit 4e83b58

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/postgresql/flexible-server/how-to-manage-virtual-network-private-endpoint-cli.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,39 +38,39 @@ To add an Azure Database for PostgreSQL flexible server instance to a virtual ne
3838

3939
1. A [virtual network](../../virtual-network/quick-create-portal.md#create-a-virtual-network). The virtual network and subnet should be in the same region and subscription as your Azure Database for PostgreSQL flexible server instance.
4040

41-
Be sure to remove any locks (**Delete** or **Read only**) from your virtual network and all subnets before you add a server to the virtual network, because locks might interfere with operations on the network and DNS. You can reset the locks after server creation.
41+
Be sure to remove any locks (**Delete** or **Read only**) from your virtual network and all subnets before you add a server to the virtual network, because locks might interfere with operations on the network and DNS. You can reset the locks after server creation.
4242

4343

4444
2. You need to sign in to your account using the [az login](/cli/azure/reference-index#az-login) command. Note the **ID** property, which refers to **Subscription ID** for your Azure account.
4545

46-
```azurecli
47-
az login
48-
```
46+
```azurecli
47+
az login
48+
```
4949
5050
3. Select the specific subscription under your account using [az account set](/cli/azure/account#az-account-set) command. Make a note of the **ID** value from the **az login** output to use as the value for **subscription** argument in the command. If you have multiple subscriptions, choose the appropriate subscription in which the resource should be billed. To get all your subscription, use [az account list](/cli/azure/account#az-account-list).
5151
52-
```azurecli
53-
az account set --subscription <subscription id>
54-
```
52+
```azurecli
53+
az account set --subscription <subscription id>
54+
```
5555
5656
## Create an Azure Database for PostgreSQL flexible server instance with a private endpoint
5757
5858
1. Create virtual network, private endpoint, private DNS zone and link it
5959
60-
You can follow this Azure networking [doc](../../private-link/create-private-endpoint-cli.md) to complete these steps.
60+
You can follow this Azure networking [doc](../../private-link/create-private-endpoint-cli.md) to complete these steps.
6161
6262
2. Create PostgreSQL Flexible Server with no public access
6363
64-
```azurecli
64+
```azurecli
6565
66-
az postgres flexible-server create --resource-group <resource_group_name> --name <server_name> --public-access 'None'
67-
```
66+
az postgres flexible-server create --resource-group <resource_group_name> --name <server_name> --public-access 'None'
67+
```
6868
6969
3. Approve the specified private endpoint connection created in first step associated with a PostgreSQL flexible server.
7070
71-
```azurecli
72-
az postgres flexible-server private-endpoint-connection approve -g <resource_group> -s <server_name> -n <connection_name> --description "Approve connection"
73-
```
71+
```azurecli
72+
az postgres flexible-server private-endpoint-connection approve -g <resource_group> -s <server_name> -n <connection_name> --description "Approve connection"
73+
```
7474
7575
## Next steps
7676

0 commit comments

Comments
 (0)