CmdID / az / az vmss / az vmss identity
az vmss identity remove
Remove user assigned identities from a VM scaleset. Azure CLI reference
3 examples 3 options Its page in the Azure CLI reference
Examples
Remove system assigned identity
az vmss identity remove -g MyResourceGroup -n MyVmssIdentify-gName of resource group.-nScale set name.Remove 2 identities which are in the same resource group with the VM scaleset
az vmss identity remove -g MyResourceGroup -n MyVmss --identities readerId writerIdIdentify-gName of resource group.-nScale set name.--identitiesSpace-separated identities to remove.Remove system assigned identity and a user identity
az vmss identity remove -g MyResourceGroup -n MyVmss --identities [system] readerIdIdentify-gName of resource group.-nScale set name.--identitiesSpace-separated identities to remove.Options
--identitiesSpace-separated identities to remove.--name, -nScale set name.--vm-nameThe name of the Virtual Machine.