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/event-grid/custom-event-to-hybrid-connection.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,11 @@ You subscribe to an Event Grid topic to tell Event Grid which events you want to
47
47
The following script gets the resource ID of the relay namespace. It constructs the ID for the hybrid connection, and subscribes to an Event Grid topic. The script sets the endpoint type to `hybridconnection` and uses the hybrid connection ID for the endpoint.
48
48
49
49
```azurecli-interactive
50
-
relayname=<namespace-name>
50
+
relaynsname=<namespace-name>
51
51
relayrg=<resource-group-for-relay>
52
52
hybridname=<hybrid-name>
53
53
54
-
relayid=$(az resource show --name $relayname --resource-group $relayrg --resource-type Microsoft.Relay/namespaces --query id --output tsv)
54
+
relayid=$(az relay namespace show --resource-group $relayrg --name $relaynsname --query id --output tsv)
55
55
hybridid="$relayid/hybridConnections/$hybridname"
56
56
topicid=$(az eventgrid topic show --name <topic_name> -g gridResourceGroup --query id --output tsv)
Copy file name to clipboardExpand all lines: articles/event-grid/how-to-filter-events.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ New-AzEventGridSubscription `
124
124
In the following Azure CLI example, you create an event subscription that filters by the beginning of the subject. You use the `--subject-begins-with` parameter to limit events to ones for a specific resource. You pass the resource ID of a network security group.
125
125
126
126
```azurecli
127
-
resourceId=$(az resource show --name demoSecurityGroup --resource-group myResourceGroup --resource-type Microsoft.Network/networkSecurityGroups --query id --output tsv)
127
+
resourceId=$(az network nsg show -g myResourceGroup -n demoSecurityGroup --query id --output tsv)
az resource show --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/caCertificates/`CA certificate name`
88
+
az eventgrid namespace ca-certificate show -g myRG --namespace-name myNS -n myCertName
88
89
```
89
90
90
91
**Delete certificate**
91
92
```azurecli-interactive
92
-
az resource delete --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/caCertificates/`CA certificate name`
az resource show --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/clientGroups/`Client group name` |
85
+
az eventgrid namespace client-group show -g myRG --namespace-name myNS -n myCG
86
86
```
87
87
88
88
**Delete client group**
89
89
```azurecli-interactive
90
-
az resource delete --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/clientGroups/`Client group name` |
az resource show --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/clients/`Client name`
164
+
az eventgrid namespace client show -g myRG --namespace-name myNS -n myClient
165
165
```
166
166
167
167
**Delete client**
168
168
```azurecli-interactive
169
-
az resource delete --id /subscriptions/`Subscription ID`/resourceGroups/`Resource Group`/providers/Microsoft.EventGrid/namespaces/`Namespace Name`/clients/`Client name`
Use the `az resource` command to create the first permission binding for publisher permission. Update the command with your resource group, namespace name, and permission binding name.
96
+
Use the `az eventgrid` command to create the first permission binding for publisher permission. Update the command with your resource group, namespace name, and permission binding name.
Copy file name to clipboardExpand all lines: articles/event-grid/query-event-subscriptions.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ This article describes how to list the Event Grid subscriptions in your Azure su
14
14
15
15
## Resource groups and Azure subscriptions
16
16
17
-
Azure subscriptions and resource groups aren't Azure resources. Therefore, event grid subscriptions to resource groups or Azure subscriptions do not have the same properties as event grid subscriptions to Azure resources. Event grid subscriptions to resource groups or Azure subscriptions are considered global.
17
+
Azure subscriptions and resource groups aren't Azure resources. Therefore, Event Grid subscriptions to resource groups or Azure subscriptions don't have the same properties as Event Grid subscriptions to Azure resources. Event Grid subscriptions to resource groups or Azure subscriptions are considered global.
18
18
19
-
To get event grid subscriptions for an Azure subscription and its resource groups, you don't need to provide any parameters. Make sure you've selected the Azure subscription you want to query. The following examples don't get event grid subscriptions for custom topics or Azure resources.
19
+
To get Event Grid subscriptions for an Azure subscription and its resource groups, you don't need to provide any parameters. Make sure you've selected the Azure subscription you want to query. The following examples don't get Event Grid subscriptions for custom topics or Azure resources.
20
20
21
21
For Azure CLI, use:
22
22
@@ -32,7 +32,7 @@ Set-AzContext -Subscription "My Azure Subscription"
32
32
Get-AzEventGridSubscription
33
33
```
34
34
35
-
To get event grid subscriptions for an Azure subscription, provide the topic type of **Microsoft.Resources.Subscriptions**.
35
+
To get Event Grid subscriptions for an Azure subscription, provide the topic type of **Microsoft.Resources.Subscriptions**.
To get event grid subscriptions for all resource groups within an Azure subscription, provide the topic type of **Microsoft.Resources.ResourceGroups**.
49
+
To get Event Grid subscriptions for all resource groups within an Azure subscription, provide the topic type of **Microsoft.Resources.ResourceGroups**.
Event grid custom topics are Azure resources. Therefore, you query event grid subscriptions for custom topics and other resources, like Blob storage account, in the same way. To get event grid subscriptions for custom topics, you must provide parameters that identify the resource or identify the location of the resource. It's not possible to broadly query event grid subscriptions for resources across your Azure subscription.
79
+
Event Grid custom topics are Azure resources. Therefore, you query Event Grid subscriptions for custom topics and other resources, like Blob storage account, in the same way. To get Event Grid subscriptions for custom topics, you must provide parameters that identify the resource or identify the location of the resource. It's not possible to broadly query Event Grid subscriptions for resources across your Azure subscription.
80
80
81
-
To get event grid subscriptions for custom topics and other resources in a location, provide the name of the location.
81
+
To get Event Grid subscriptions for custom topics and other resources in a location, provide the name of the location.
0 commit comments