CmdID / az / az policy / az policy assignment / az policy assignment identity
az policy assignment identity remove
Remove the managed identity. Azure CLI reference
Remove the system or user assigned managed identity from the policy assignment matching the given name and scope.
1 example 3 options Its page in the Azure CLI reference
Examples
Remove user assigned managed identity from a policy assignment
az policy assignment identity remove --name MyPolicyAssignment --user-assignedIdentify--user-assignedRemove the user managed identity.Options
--mi-system-assigned, --system-assignedRemove the system managed identity.--mi-user-assigned, --user-assignedRemove the user managed identity.--scope, --name, -n