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
- Checking services availability in Azure and Azure Stack Hub
- Reading text files with PowerShell and Linux bash shell
- Integrating Microsoft Defender with Cloud App Security
- New from Microsoft: Azure Security Center onboarding guide
- Fixing Azure Key Vault when moving to a different tenant