Skip to content

Commit dbc94fa

Browse files
authored
Update qs-configure-powershell-windows-vm.md
When -IdentityType is set to 'UserAssigned', Update-AzVM requires an IdentityID be passed as well. So, to remove the System assigned identity while leaving the User Assigned will require passing the ID of the User Assigned Identity that will remain.
1 parent 2d5e4d6 commit dbc94fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/active-directory/managed-identities-azure-resources/qs-configure-powershell-windows-vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you have a Virtual Machine that no longer needs the system-assigned managed i
9595

9696
```azurepowershell-interactive
9797
$vm = Get-AzVM -ResourceGroupName myResourceGroup -Name myVM
98-
Update-AzVm -ResourceGroupName myResourceGroup -VM $vm -IdentityType "UserAssigned"
98+
Update-AzVm -ResourceGroupName myResourceGroup -VM $vm -IdentityType "UserAssigned" -IdentityID "/subscriptions/<SUBSCRIPTION ID>/resourcegroups/<RESROURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<USER ASSIGNED IDENTITY NAME>..."
9999
```
100100

101101
If you have a virtual machine that no longer needs system-assigned managed identity and it has no user-assigned managed identities, use the following commands:

0 commit comments

Comments
 (0)