Change default disk option to Standard disk from premium when creating virtual machine

Sri Manthena 1 Reputation point
2022-04-19T17:19:07.407+00:00

Change default disk option to Standard disk from premium when creating virtual machine .
Hi Team I want to change the default disk option when deploying the VM from premium to standard wanted to know if this possible .
I am trying to help customer who is trying to make sure the users are not using premium by default .

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
417 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Cogan 7,812 Reputation points MVP
    2022-04-19T17:24:56.127+00:00

    You cannot change the default option that is selected in the UI. However, you could use Azure policy to prevent users from creating VM's with premium disks. For example this policy will block the creation of premium disks:

    {
            "mode": "All",
            "parameters": {},
            "policyRule": {
                "if": {
                    "allOf": [
                        {
                            "field": "type",
                            "equals": "Microsoft.Compute/disks"
                        },
                        {
                            "field": "Microsoft.Compute/disks/sku.name",
                            "equals": "Premium_LRS"
                        }
                    ]
                },
                "then": {
                    "effect": "deny"
                }
            }
    }
    

  2. Ravi Kanth Koppala 2,861 Reputation points Microsoft Employee
    2022-04-22T11:33:41.053+00:00

    @Sri Manthena ,
    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    it's built into the portal to be the default and cannot be changed. Premium SSD gives you the highest service SLA so it is the recommended choice by Microsoft. If you are performing your deployments through code or templates then you can program the default setting to whatever you like.

    ----------

    Please "Accept as Answer" and Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.

    0 comments No comments