Skip to content

Instantly share code, notes, and snippets.

@kpatnayakuni
Created February 3, 2020 16:59
Show Gist options
  • Save kpatnayakuni/085f165dc0f445fd04ed0b1d40a7772d to your computer and use it in GitHub Desktop.
Save kpatnayakuni/085f165dc0f445fd04ed0b1d40a7772d to your computer and use it in GitHub Desktop.
# Install and Import the module
$moduleName = 'Az.ManagedServiceIdentity'
Install-Module -Name $moduleName -Force
Import-Module -Name $moduleName
# Create User Assugned Managed Identity
$identityName = 'amuai'
$identity = New-AzUserAssignedIdentity -Name $identityName `
-ResourceGroupName $rgName -Location $location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment