Using Azure ephemeral disks when provisioning VMs with ARM

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.

Ephemeral disks ARM

The result after provisioning the VM with the code above will be similar to this image:

Leave a Comment

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top