CmdID

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

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

Examples

from the Azure CLI, each command read by CmdID

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

3 in the Azure CLI reference
--identitiesSpace-separated identities to remove.
--name, -nScale set name.
--vm-nameThe name of the Virtual Machine.