Skip to content

Instantly share code, notes, and snippets.

@kpatnayakuni
Created February 4, 2020 11:14
Show Gist options
  • Save kpatnayakuni/e23e3bbea4f0caf785fb6d80a446afa2 to your computer and use it in GitHub Desktop.
Save kpatnayakuni/e23e3bbea4f0caf785fb6d80a446afa2 to your computer and use it in GitHub Desktop.
# Assign the identity and enable User Assigned Managed Identity on Virtual Machine.
$null = Update-AzVM -ResourceGroupName $rgName -VM $vm `
-IdentityType UserAssigned -IdentityID $identity.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment