az webpubsub identity
Note
This reference is part of the webpubsub extension for the Azure CLI (version 2.56.0 or higher). The extension will automatically install the first time you run an az webpubsub identity command. Learn more about extensions.
Manage managed identity settings.
Commands
Name | Description | Type | Status |
---|---|---|---|
az webpubsub identity assign |
Assign managed identity for WebPubSub Service. |
Extension | GA |
az webpubsub identity remove |
Remove managed identity for WebPubSub Service. |
Extension | GA |
az webpubsub identity show |
Show managed identity for WebPubSub Service. |
Extension | GA |
az webpubsub identity assign
Assign managed identity for WebPubSub Service.
az webpubsub identity assign --identity
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Assign system assigned identity.
az webpubsub identity assign --identity [system] -n MyWebPubSub -g MyResourceGroup
Assign user assigned identity.
az webpubsub identity assign --identity MyManagedIdentityId -n MyWebPubSub -g MyResourceGroup
Required Parameters
Assigns managed identities to the service. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned identity. You can only assign either one of them.
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.
Name of the webpubsub.
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 webpubsub identity remove
Remove managed identity for WebPubSub Service.
az webpubsub identity remove [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Remove managed identity.
az webpubsub identity remove -n MyWebPubSub -g MyResourceGroup
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.
Name of the webpubsub.
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 webpubsub identity show
Show managed identity for WebPubSub Service.
az webpubsub identity show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Show managed identity.
az webpubsub identity show -n MyWebPubSub -g MyResourceGroup
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.
Name of the webpubsub.
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.