For Microsoft Azure virtual machines, the use of ephemeral disks is recommended in certain scenarios. For example, an Azure ephemeral OS disk is perfect for stateless applications, and it has several advantages if your application supports it. They are free (there is no storage cost), have lower read/write latency than traditional OS disks, and are available in all regions, to mention a few of their advantages.
How do we deploy them using Azure Resource Manager (ARM)? We need to find a VM that supports it (in our case, we are using standard_DS2_v2), and we need to introduce/change the code highlighted below to make it work.
The result after provisioning the VM with the code above will be similar to this image:
More Quick Tips articles
- IaaS VM ‘cheat sheets’ available in Azure Portal
- Finding Azure locations with PowerShell
- Check if Azure Key Vault certificate uses exportable private keys
- Managing access to your Azure invoices
- Managing Azure subscription policies