Skip to content

Commit d0b68da

Browse files
committed
color coding
1 parent 23ecd94 commit d0b68da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/event-grid/configure-private-endpoints.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ az network vnet subnet update \
208208
# create event grid topic. update <LOCATION>
209209
az rest --method put \
210210
--uri $topicUri \
211-
--body "{\""location\"":\""<LOCATION>\"", \""sku\"": {\""name\"": \""premium\""}, \""properties\"": {\""publicNetworkAccess\"":\""Disabled\""}}"
211+
--body "{\""location\"":\""LOCATION\"", \""sku\"": {\""name\"": \""premium\""}, \""properties\"": {\""publicNetworkAccess\"":\""Disabled\""}}"
212212
213213
# verify that the topic was created.
214214
az rest --method get \
@@ -383,11 +383,13 @@ The following sample PowerShell snippet shows you how to approve a private endpo
383383
```azurepowershell-interactive
384384
$approvedBody = @{"properties"=@{"privateLinkServiceConnectionState"=@{"status"="approved";"description"="connection approved";"actionsRequired"="none"}}} | ConvertTo-Json
385385
386+
# approve endpoint connection
386387
Invoke-RestMethod -Method 'Put' `
387388
-Uri "https://management.azure.com/subscriptions/<AzuRE SUBSCRIPTION ID>/resourceGroups/<RESOURCE GROUP NAME>/providers/Microsoft.EventGrid/topics/<EVENT GRID TOPIC NAME>/privateEndpointConnections/<PRIVATE ENDPOINT NAME>.<GUID>?api-version=2020-04-01-preview" `
388389
-Headers $Headers `
389390
-Body $approvedBody
390391
392+
# confirm that the endpoint connection was approved
391393
Invoke-RestMethod -Method 'Get' `
392394
-Uri "https://management.azure.com/subscriptions/<AZURE SUBSCRIPTION ID>/resourceGroups/<RESOURCE GROUP NAME>/providers/Microsoft.EventGrid/topics/<EVENT GRID TOPIC NAME>/privateEndpointConnections/<PRIVATE ENDPOINT NAME>.<GUID>?api-version=2020-04-01-preview" `
393395
-Headers $Headers

0 commit comments

Comments
 (0)