CmdID

CmdID / az / az webpubsub / az webpubsub identity

az webpubsub identity assign

Assign managed identity for WebPubSub Service. Azure CLI extensions reference

2 examples 1 option Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Assign system assigned identity.

az webpubsub identity assign --identity [system] -n MyWebPubSub -g MyResourceGroupIdentify
--identityAssigns managed identities to the service.
-nName of the webpubsub.
-gName of resource group.

Assign user assigned identity.

az webpubsub identity assign --identity MyManagedIdentityId -n MyWebPubSub -g MyResourceGroupIdentify
--identityAssigns managed identities to the service.
-nName of the webpubsub.
-gName of resource group.

Options

1 in the Azure CLI extensions reference
--identityAssigns managed identities to the service.