Feb 24 2018 01:53 PM
The VM will not resize from the Azure portal with an error:
Feb 25 2018 10:26 AM
Feb 25 2018 10:32 AM
Feb 25 2018 10:35 AM
Feb 25 2018 10:40 AM
Feb 25 2018 10:46 AM
Mar 21 2018 05:30 AM
SolutionI was able to get around this problem with PowerShell. Not sure why this works, but maybe it'll help. The issue seems to be that MSI is leaving an Identity property on the VM. I set this property to $null and set the new size of the VM in the same update:
> $vm = Get-AzureRmVM -ResourceGroupName [VALUE] -Name [VALUE] > $vm.Identity = $null > $vm.HardwareProfile.VmSize = [DESIRED SIZE] > Update-AzureRmVM -ResourceGroupName [VALUE] -VM $vm
DESIRED SIZE is the string representation of size like 'Standard_D4s_v3'.
This did not erase the Identity property, but did set the size successfully.
Nov 03 2023 03:21 PM
Mar 21 2018 05:30 AM
SolutionI was able to get around this problem with PowerShell. Not sure why this works, but maybe it'll help. The issue seems to be that MSI is leaving an Identity property on the VM. I set this property to $null and set the new size of the VM in the same update:
> $vm = Get-AzureRmVM -ResourceGroupName [VALUE] -Name [VALUE] > $vm.Identity = $null > $vm.HardwareProfile.VmSize = [DESIRED SIZE] > Update-AzureRmVM -ResourceGroupName [VALUE] -VM $vm
DESIRED SIZE is the string representation of size like 'Standard_D4s_v3'.
This did not erase the Identity property, but did set the size successfully.