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
Examples
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
--identityAssigns managed identities to the service.