Automating switch between Standard HDD and Premium Disk on VMs

KindCompute-6524 45 Reputation points
2024-07-22T06:46:23.98+00:00

How can we have an automation that changes our VM's disk type to Standard HDD when we turn them off and then changes them to Premium before turning the VM back on? Is there any ready-to-use method available?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,569 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
602 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,193 questions
Azure Automanage
Azure Automanage
An Azure service that simplifies and optimizes the management of virtual machines with automated operations.
1 question
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,320 questions
{count} votes