az notification-hub
Note
This reference is part of the notification-hub extension for the Azure CLI (version 2.49.0 or higher). The extension will automatically install the first time you run an az notification-hub command. Learn more about extensions.
This command group is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage notification hubs.
Commands
Name | Description | Type | Status |
---|---|---|---|
az notification-hub authorization-rule |
Commands to manage notification hubs authorization rule. |
Extension | Experimental |
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 check-availability |
Checks the availability of the given notification hub in a namespace. |
Extension | Experimental |
az notification-hub create |
Create a notification hub in a namespace. |
Extension | Experimental |
az notification-hub credential |
Commands to manage notification hub credential. |
Extension | Experimental |
az notification-hub credential adm | Extension | Experimental | |
az notification-hub credential adm update |
Update credential for Amazon(ADM). |
Extension | Experimental |
az notification-hub credential apns | Extension | Experimental | |
az notification-hub credential apns update |
Update credential for Apple(APNS). |
Extension | Experimental |
az notification-hub credential baidu | Extension | Experimental | |
az notification-hub credential baidu update |
Update credential for Baidu(Andrioid China). |
Extension | Experimental |
az notification-hub credential gcm | Extension | Experimental | |
az notification-hub credential gcm update |
Update the Google GCM/FCM API key. |
Extension | Experimental |
az notification-hub credential list |
Lists the PNS credentials associated with a notification hub. |
Extension | Experimental |
az notification-hub credential mpns | Extension | Experimental | |
az notification-hub credential mpns update |
Update credential for Windows Phone(MPNS). |
Extension | Experimental |
az notification-hub credential wns | Extension | Experimental | |
az notification-hub credential wns update |
Update credential for Windows(WNS). |
Extension | Experimental |
az notification-hub delete |
Delete a notification hub associated with a namespace. |
Extension | Experimental |
az notification-hub list |
List the notification hubs associated with a namespace. |
Extension | Experimental |
az notification-hub namespace |
Commands to manage notification hub namespace. |
Extension | Experimental |
az notification-hub namespace authorization-rule |
Commands to manage notification hubs namespace authorization rule. |
Extension | Experimental |
az notification-hub namespace authorization-rule create |
Create an authorization rule for a namespace. |
Extension | Experimental |
az notification-hub namespace authorization-rule delete |
Delete a namespace authorization rule. |
Extension | Experimental |
az notification-hub namespace authorization-rule list |
List the authorization rules for a namespace. |
Extension | Experimental |
az notification-hub namespace authorization-rule list-keys |
List the primary and secondary connection strings to the namespace. |
Extension | Experimental |
az notification-hub namespace authorization-rule regenerate-keys |
Regenerate the primary/secondary keys to the namespace authorization rule. |
Extension | Experimental |
az notification-hub namespace authorization-rule show |
Get an authorization rule for a namespace by name. |
Extension | Experimental |
az notification-hub namespace check-availability |
Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. |
Extension | Experimental |
az notification-hub namespace create |
Create a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. |
Extension | Experimental |
az notification-hub namespace delete |
Delete an existing namespace. This operation also removes all associated notificationHubs under the namespace. |
Extension | Experimental |
az notification-hub namespace list |
List available namespaces. |
Extension | Experimental |
az notification-hub namespace show |
Return the description for the specified namespace. |
Extension | Experimental |
az notification-hub namespace update |
Update a service namespace. The namespace's resource manifest is immutable and cannot be modified. |
Extension | Experimental |
az notification-hub namespace wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Experimental |
az notification-hub show |
Show the notification hub information. |
Extension | Experimental |
az notification-hub test-send |
Test send a push notification. |
Extension | Experimental |
az notification-hub update |
Update a notification hub in a namespace. |
Extension | Experimental |
az notification-hub check-availability
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Checks the availability of the given notification hub in a namespace.
az notification-hub check-availability --name
[--ids]
[--namespace-name]
[--resource-group]
[--subscription]
Examples
Check the availability of the given notification hub name
az notification-hub check-availability --resource-group MyResourceGroup --namespace-name "locp-newns" --name my-hub
Required Parameters
Resource name.
Optional Parameters
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.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
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 create
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a notification hub in a namespace.
az notification-hub create --name
--namespace-name
--resource-group
[--location]
[--registration-ttl]
[--tags]
Examples
Create a notification hub
az notification-hub create --resource-group MyResourceGroup --namespace-name my-namespace --name my-hub --location "South Central US"
Required Parameters
The notification hub name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Resource location When not specified, the location of the resource group will be used.
The RegistrationTtl of the created NotificationHub.
Resource tags Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
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 delete
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a notification hub associated with a namespace.
az notification-hub delete [--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a notification hub
az notification-hub delete --resource-group MyResourceGroup --namespace-name my-namespace --name my-hub
Optional Parameters
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.
The notification hub name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
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 list
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the notification hubs associated with a namespace.
az notification-hub list --namespace-name
--resource-group
[--max-items]
[--next-token]
Examples
List the notification hubs
az notification-hub 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>
.
Optional Parameters
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.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
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 show
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show the notification hub information.
az notification-hub show [--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
Optional Parameters
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.
The notification hub name.
The namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
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 test-send
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Test send a push notification.
az notification-hub test-send --namespace-name
--notification-format {apple, baidu, gcm, template, windows, windowsphone}
--notification-hub-name
--resource-group
[--message]
[--payload]
[--tag]
[--title]
Examples
test send notification with message body
az notification-hub test-send --resource-group MyResourceGroup --namespace-name \
my-namespace --notification-hub-name my-hub --notification-format gcm \
--message "test notification"
test send notification from file
az notification-hub test-send --resource-group MyResourceGroup --namespace-name \
my-namespace --notification-hub-name my-hub --notification-format gcm \
--payload @path/to/file
test send notification with json string
az notification-hub test-send --resource-group MyResourceGroup --namespace-name \
my-namespace --notification-hub-name my-hub --notification-format gcm \
--payload "{\"data\":{\"message\":\"test notification\"}}"
Required Parameters
The namespace name.
The format of notification message.
The notification hub name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The message body to send. If not None, payload will be ignored.
The payload for the message in JSON format.
You can send test notifications to a specific set of registrations using this option. Leave this field empty if you like to send push notifications to 10 random registrations on the selected platform.
The title of the notification.
Global Parameters
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 update
Command group 'notification-hub' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a notification hub in a namespace.
az notification-hub update [--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--location]
[--name]
[--namespace-name]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
Examples
Update the notification hub
az notification-hub update --resource-group MyResourceGroup --namespace-name my-namespace --name "sdk-notificationHubs-8708"
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
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.
Resource location.
The notification hub name.
The namespace name.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Resource tags Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for