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/cosmos-db/how-to-configure-private-endpoints.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,57 @@ foreach ($IPConfiguration in $networkInterface.IpConfigurations)
181
181
}
182
182
```
183
183
184
+
### Create a private endpoint by using Azure CLI
185
+
186
+
Run the following Azure CLI script to create a private endpoint named "myPrivateEndpoint" for an existing Azure Cosmos account. Replace the variable values with the details for your environment.
187
+
188
+
```azurecli-interactive
189
+
190
+
# Resource group where the Azure Cosmos account and virtual network resources are located
191
+
ResourceGroupName="myResourceGroup"
192
+
193
+
# Subscription ID where the Azure Cosmos account and virtual network resources are located
194
+
SubscriptionId="<your Azure subscription ID>"
195
+
196
+
# Name of the existing Azure Cosmos account
197
+
CosmosDbAccountName="mycosmosaccount"
198
+
199
+
# API type of your Azure Cosmos account: Sql, MongoDB, Cassandra, Gremlin, or Table
200
+
CosmosDbApiType="Sql"
201
+
202
+
# Name of the virtual network to create
203
+
VNetName="myVnet"
204
+
205
+
# Name of the subnet to create
206
+
SubnetName="mySubnet"
207
+
208
+
# Name of the private endpoint to create
209
+
PrivateEndpointName="myPrivateEndpoint"
210
+
211
+
# Name of the private endpoint connection to create
0 commit comments