How Get-AzVM return Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine vs Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView?
I'm trying to update a windows vm to have a system assigned managed identity. I tried using the following commands. $Vm = Get-AzVM -Name $vm_name -ResourceGroupName $rg -Status Update-AzVM -ResourceGroupName $rg -VM $vm -IdentityType SystemAssigned I'm getting the error message…