az notification-hub authorization-rule
Note
This reference is part of the notification-hub extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az notification-hub authorization-rule command. Learn more about extensions.
Commands to manage notification hubs authorization rule.
Commands
Name | Description | Type | Status |
---|---|---|---|
az notification-hub authorization-rule create |
Create an authorization rule for a notification hub. |
Extension | Experimental |
az notification-hub authorization-rule delete |
Delete a notificationHub authorization rule. |
Extension | Experimental |
az notification-hub authorization-rule list |
List the authorization rules for a notification hub. |
Extension | Experimental |
az notification-hub authorization-rule list-keys |
List the primary and secondary connection strings to the notification hub. |
Extension | Experimental |
az notification-hub authorization-rule regenerate-keys |
Regenerates the primary/secondary keys to the notification hub authorization rule. |
Extension | Experimental |
az notification-hub authorization-rule show |
Show an authorization rule for a notification hub by name. |
Extension | Experimental |
az notification-hub authorization-rule create
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create an authorization rule for a notification hub.
az notification-hub authorization-rule create --name
--namespace-name
--notification-hub-name
--resource-group
[--rights]
Examples
Create an authorization rule
az notification-hub authorization-rule create --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name DefaultListenSharedAccessSignature --rights Listen Send
Required Parameters
Authorization Rule Name.
The namespace name.
The notification hub name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The rights associated with the rule. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Property | Value |
---|---|
Parameter group: | Properties Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az notification-hub authorization-rule delete
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a notificationHub authorization rule.
az notification-hub authorization-rule delete [--ids]
[--name]
[--namespace-name]
[--notification-hub-name]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a notificationHub authorization rule
az notification-hub authorization-rule delete --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name DefaultListenSharedAccessSignature
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Authorization Rule Name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The namespace name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The notification hub name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az notification-hub authorization-rule list
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the authorization rules for a notification hub.
az notification-hub authorization-rule list --namespace-name
--notification-hub-name
--resource-group
[--max-items]
[--next-token]
Examples
List the authorization rules for a notification hub.
az notification-hub authorization-rule list --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub
Required Parameters
The namespace name.
The notification hub name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Property | Value |
---|---|
Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
Property | Value |
---|---|
Parameter group: | Pagination Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az notification-hub authorization-rule list-keys
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the primary and secondary connection strings to the notification hub.
az notification-hub authorization-rule list-keys [--ids]
[--name]
[--namespace-name]
[--notification-hub-name]
[--resource-group]
[--subscription]
Examples
List connection strings of the authorization rule
az notification-hub authorization-rule list-keys --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name "sdk-AuthRules-5800"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The connection string of the NotificationHub for the specified authorizationRule.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The namespace name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The notification hub name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az notification-hub authorization-rule regenerate-keys
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Regenerates the primary/secondary keys to the notification hub authorization rule.
az notification-hub authorization-rule regenerate-keys --policy-key {Primary Key, Secondary Key}
[--ids]
[--name]
[--namespace-name]
[--notification-hub-name]
[--resource-group]
[--subscription]
Examples
Regenerate the notification hub authorization rule
az notification-hub authorization-rule regenerate-keys --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name DefaultListenSharedAccessSignature --policy-key "Secondary Key"
Required Parameters
Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key.
Property | Value |
---|---|
Parameter group: | Parameters Arguments |
Accepted values: | Primary Key, Secondary Key |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The connection string of the NotificationHub for the specified authorizationRule.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The namespace name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The notification hub name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az notification-hub authorization-rule show
This command is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show an authorization rule for a notification hub by name.
az notification-hub authorization-rule show [--ids]
[--name]
[--namespace-name]
[--notification-hub-name]
[--resource-group]
[--subscription]
Examples
Show the authorization rule information
az notification-hub authorization-rule show --resource-group MyResourceGroup --namespace-name my-namespace --notification-hub-name my-hub --name DefaultListenSharedAccessSignature
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Authorization Rule Name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The namespace name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The notification hub name.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |