CmdID / az / az vmss / az vmss identity
az vmss identity assign
Enable managed service identity on a VMSS. Azure CLI reference
5 options Its page in the Azure CLI reference
Options
--identitiesSpace-separated identities to assign.--name, -nScale set name.--roleRole name or id the system assigned identity will have.--scopeScope that the system assigned identity can access.--vm-nameThe name of the Virtual Machine.