File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ az network vnet subnet update \
208
208
# create event grid topic. update <LOCATION>
209
209
az rest --method put \
210
210
--uri $topicUri \
211
- --body "{\""location\"":\""< LOCATION> \"", \""sku\"": {\""name\"": \""premium\""}, \""properties\"": {\""publicNetworkAccess\"":\""Disabled\""}}"
211
+ --body "{\""location\"":\""LOCATION\"", \""sku\"": {\""name\"": \""premium\""}, \""properties\"": {\""publicNetworkAccess\"":\""Disabled\""}}"
212
212
213
213
# verify that the topic was created.
214
214
az rest --method get \
@@ -383,11 +383,13 @@ The following sample PowerShell snippet shows you how to approve a private endpo
383
383
``` azurepowershell-interactive
384
384
$approvedBody = @{"properties"=@{"privateLinkServiceConnectionState"=@{"status"="approved";"description"="connection approved";"actionsRequired"="none"}}} | ConvertTo-Json
385
385
386
+ # approve endpoint connection
386
387
Invoke-RestMethod -Method 'Put' `
387
388
-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" `
388
389
-Headers $Headers `
389
390
-Body $approvedBody
390
391
392
+ # confirm that the endpoint connection was approved
391
393
Invoke-RestMethod -Method 'Get' `
392
394
-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" `
393
395
-Headers $Headers
You can’t perform that action at this time.
0 commit comments