CmdID / az / az containerapp / az containerapp env / az containerapp env identity
az containerapp env identity remove
Remove a managed identity from a managed environment. Azure CLI extensions reference
5 examples 1 option Its page in the Azure CLI extensions reference
Examples
Remove system identity.
az containerapp env identity remove -n my-env -g MyResourceGroup --system-assignedIdentify-nName of the Container Apps environment.-gName of resource group.--system-assignedBoolean indicating whether to assign system-assigned identity.Remove user identity.
az containerapp env identity remove -n my-env -g MyResourceGroup --user-assigned myUserIdentityNameIdentify-nName of the Container Apps environment.-gName of resource group.--user-assignedSpace-separated user identities.Remove system and user identity (from a different resource group than the containerapp).
az containerapp env identity remove -n my-env -g MyResourceGroup --system-assigned --user-assigned myUserIdentityResourceIdIdentify-nName of the Container Apps environment.-gName of resource group.--system-assignedBoolean indicating whether to assign system-assigned identity.--user-assignedSpace-separated user identities.Remove all user identities.
az containerapp env identity remove -n my-env -g MyResourceGroup --user-assignedIdentify-nName of the Container Apps environment.-gName of resource group.--user-assignedSpace-separated user identities.Remove system identity and all user identities.
az containerapp env identity remove -n my-env -g MyResourceGroup --system-assigned --user-assignedIdentify-nName of the Container Apps environment.-gName of resource group.--system-assignedBoolean indicating whether to assign system-assigned identity.--user-assignedSpace-separated user identities.Options
--user-assignedSpace-separated user identities.