Created
June 13, 2020 10:38
-
-
Save manoj-choudhari-git/0d76caaeba2508b7118dd1736a4d95c2 to your computer and use it in GitHub Desktop.
Managing user assigned managed identities using Azure CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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