I want to replace the reference VHD file for Azure AutoScale in Powershell.

Asked 5 months ago, Updated 5 months ago, 14 views

In Azure's AutoScale, we would like to make URI changes to the original VMS OS disk in Powershell.
The command itself could be executed with Update-azurermvmss, but if you specify the number of VMs in Default, at least that number is created first and never disappears, so the image differs from the VM created by AutoScale.
Is it possible to apply a new custom image to all VMSS?

Once the minimum and default values of the created VMs are set to 0 and then all VMs are erased, the image can be applied to all VMs, but if you do this, it will take time for all VMs to disappear during AutoScale, and the service will be down.

azure powershell

2022-09-30 11:12

2 Answers

What do you think about updating the instance ID using Update-AzureRmVmssInstance?

Note: How to upgrade an Azure VM Scale Set without shutting it down

2022-09-30 11:12

I couldn't add a comment, so I'm sorry to give you a different answer.
I've tried upgrading my custom image several times, but I've never had that kind of behavior...
It is recommended that you contact your support representative.
By the way, what exactly is the behavior of the command stopping?

2022-09-30 11:12

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.