Skip to content

Commit 22ce59b

Browse files
committed
Adding private DNS zone CLI script
1 parent bc48656 commit 22ce59b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

articles/cosmos-db/how-to-configure-private-endpoints.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ New-AzPrivateDnsRecordSet -Name $recordName `
172172
After the private endpoint is provisioned, you can query the IP addresses and the FQDN mapping by using the following PowerShell script:
173173

174174
```azurepowershell-interactive
175-
176175
$pe = Get-AzPrivateEndpoint -Name MyPrivateEndpoint -ResourceGroupName myResourceGroup
177176
$networkInterface = Get-AzNetworkInterface -ResourceId $pe.NetworkInterfaces[0].Id
178177
foreach ($IPConfiguration in $networkInterface.IpConfigurations)
@@ -186,7 +185,6 @@ foreach ($IPConfiguration in $networkInterface.IpConfigurations)
186185
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.
187186

188187
```azurecli-interactive
189-
190188
# Resource group where the Azure Cosmos account and virtual network resources are located
191189
ResourceGroupName="myResourceGroup"
192190
@@ -237,7 +235,6 @@ az network private-endpoint create \
237235
After you create the private endpoint, you can integrate it with a private DNS zone by using the following Azure CLI script:
238236

239237
```azurecli-interactive
240-
241238
zoneName="privatelink.documents.azure.com"
242239
243240
az network private-dns zone create --resource-group $ResourceGroupName \

0 commit comments

Comments
 (0)