You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/how-to-manage-virtual-network-private-endpoint-cli.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,39 +38,39 @@ To add an Azure Database for PostgreSQL flexible server instance to a virtual ne
38
38
39
39
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.
40
40
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.
42
42
43
43
44
44
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.
45
45
46
-
```azurecli
47
-
az login
48
-
```
46
+
```azurecli
47
+
az login
48
+
```
49
49
50
50
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).
51
51
52
-
```azurecli
53
-
az account set --subscription <subscription id>
54
-
```
52
+
```azurecli
53
+
az account set --subscription <subscription id>
54
+
```
55
55
56
56
## Create an Azure Database for PostgreSQL flexible server instance with a private endpoint
57
57
58
58
1. Create virtual network, private endpoint, private DNS zone and link it
59
59
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.
61
61
62
62
2. Create PostgreSQL Flexible Server with no public access
63
63
64
-
```azurecli
64
+
```azurecli
65
65
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
+
```
68
68
69
69
3. Approve the specified private endpoint connection created in first step associated with a PostgreSQL flexible server.
0 commit comments