Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created June 13, 2020 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/0d76caaeba2508b7118dd1736a4d95c2 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/0d76caaeba2508b7118dd1736a4d95c2 to your computer and use it in GitHub Desktop.
Managing user assigned managed identities using Azure CLI
## Optional - create the resource group
## Ignore this step if you already have resource group for identity
az group create --name myResourceGroup --location eastus
## Create user assigned managed identity
## Resource group and the user assigned identity name are the parmaeters
az identity create --resource-group myResourceGroup --name myUserAssignedIdentity
## List the identities from a resource group
## Identity user assigned identities by
## "type": "Microsoft.ManagedIdentity/userAssignedIdentities"
az identity list --resource-group myResourceGroup
## Delete the user assigned managed identity
## Resource group and the user assigned identity name are the parmaeters
az identity delete --resource-group myResourceGroup --name myUserAssignedIdentity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment