Skip to content

Commit 265217e

Browse files
authored
Merge pull request #110798 from sbray779/patch-1
Update qs-configure-powershell-windows-vm.md
2 parents 5b8b5e7 + dbc94fa commit 265217e

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)