az notification-hub namespace authorization-rule
Note
This reference is part of the notification-hub extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az notification-hub namespace authorization-rule command. Learn more about extensions.
Commands to manage notification hubs namespace authorization rule.
Commands
| az notification-hub namespace authorization-rule create |
Create an authorization rule for a namespace. |
| az notification-hub namespace authorization-rule delete |
Delete a namespace authorization rule. |
| az notification-hub namespace authorization-rule list |
List the authorization rules for a namespace. |
| az notification-hub namespace authorization-rule list-keys |
List the Primary and Secondary ConnectionStrings to the namespace. |
| az notification-hub namespace authorization-rule regenerate-keys |
Regenerate the Primary/Secondary Keys to the Namespace Authorization Rule. |
| az notification-hub namespace authorization-rule show |
Show an authorization rule for a namespace by name. |
az notification-hub namespace authorization-rule create
Create an authorization rule for a namespace.
az notification-hub namespace authorization-rule create --name
--namespace-name
--resource-group
--rights
Examples
Create a namespace authorization rule
az notification-hub namespace authorization-rule create --resource-group \
MyResourceGroup --namespace-name my-namespace --name "sdk-AuthRules-1788" --rights Listen Send
Required Parameters
The authorization rule name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The rights associated with the rule.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az notification-hub namespace authorization-rule delete
Delete a namespace authorization rule.
az notification-hub namespace authorization-rule delete --name
--namespace-name
--resource-group
[--yes]
Examples
Delete a namespace authorization rule
az notification-hub namespace authorization-rule delete --resource-group MyResourceGroup \
--namespace-name my-namespace --name "RootManageSharedAccessKey"
Required Parameters
The authorization rule name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not prompt for confirmation.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az notification-hub namespace authorization-rule list
List the authorization rules for a namespace.
az notification-hub namespace authorization-rule list --namespace-name
--resource-group
Examples
List authorization rules of the namespace
az notification-hub namespace authorization-rule list --resource-group MyResourceGroup \
--namespace-name my-namespace
Required Parameters
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az notification-hub namespace authorization-rule list-keys
List the Primary and Secondary ConnectionStrings to the namespace.
az notification-hub namespace authorization-rule list-keys --name
--namespace-name
--resource-group
Examples
List keys of the namesapce authorization rule
az notification-hub namespace authorization-rule list-keys --resource-group MyResourceGroup --namespace-name \
my-namespace --name "RootManageSharedAccessKey"
Required Parameters
The authorization rule name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az notification-hub namespace authorization-rule regenerate-keys
Regenerate the Primary/Secondary Keys to the Namespace Authorization Rule.
az notification-hub namespace authorization-rule regenerate-keys --name
--namespace-name
--policy-key {Primary Key, Secondary Key}
--resource-group
Examples
Regenerate keys of the namesapce authorization rule
az notification-hub namespace authorization-rule regenerate-keys --resource-group MyResourceGroup --namespace-name \
my-namespace --name "RootManageSharedAccessKey" --policy-key "Secondary Key"
Required Parameters
The authorization rule name.
The namespace name.
Name of the key that has to be regenerated for the Namespace Authorization Rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az notification-hub namespace authorization-rule show
Show an authorization rule for a namespace by name.
az notification-hub namespace authorization-rule show --name
--namespace-name
--resource-group
Examples
Show namespace authorization rule info
az notification-hub namespace authorization-rule show --resource-group MyResourceGroup \
--namespace-name my-namespace --name "RootManageSharedAccessKey"
Required Parameters
The authorization rule name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ