question

LukeUhren-6505 avatar image
0 Votes"
LukeUhren-6505 asked ·

VM Scaleset Set OS Disk Storage Account Type

I am wanting to know if it's possible to change the Storage Account Type of the OS Disk on a VM Scaleset with powershell easily? I am looking up all the commands like Update-AzVmss, Set-AzVmssVM, Set-AzVmssStorageProfile and don't see it mentioned how to change it. All I've tried as well does not work.

Is this possible and if so does anyone know the correct syntaxes to use? Only way right now I have done it, is I just rerun my ARM templates as all my servers as rebuilt on scripts and will be as good as before if I do, but doing so in powershell would be likely easier. And I am talking about deleting it and rebuilding or else it gives this error...
Changing | property osDisk.managedDisk.storageAccountType is not allowed

Example, I would want change the Storage Account type of the OS disk from Standard HDD to Premium SSD and vice versa.

azure-virtual-machines-scale-set
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered ·

@LukeUhren-6505

The managed OS disk storage account type is a property that can only be set when the VMSS is created, please see the link for reference.


Which means you cannot use the "-ManagedDiskStorageAccountType" parameter for updating the VMSS with Update-AzVmss cmdlet once the scale set is deployed. Work on document update is in progress to make this clear and avoid confusion, please see this link for reference:

Thanks.



Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.