Loading...

Announcing Public Preview of new attach/detach disks API for VMs/VMSS

Announcing Public Preview of new attach/detach disks API for VMs/VMSS

We are excited to announce the public preview of a new API that will make attaching and detaching disks to a VM faster and easier. The new API is designed to reduce the number of API calls and the latency involved in disk operations. It simplifies the inputs required to attach disks and allows multiple disks to be attached/detached in one request. The new API is compatible with single instance VMs, VMSS  Uniform and VMSS Flex.

 

The new API offers several advantages over the existing disk management API. Here are some of the benefits you can expect from using the new API:

  • Faster and more efficient: The new API reduces the number of API calls and the latency involved in attaching and detaching disks. For example, you can mention only the disk that needs to be attached/detached and don’t need to mention the LUN number. It helps you avoid the GET API call required for getting the list of all disks & LUN numbers being used.
  • Easier and more intuitive: The new API simplifies the disk management workflow by allowing you to attach and detach multiple disks in one request, and by reducing the input parameters.
  • Separate Throttling limits – Currently, customers need to make Update VM API requests to attach/detach a disk and there is a limit of max 12 requests per VM per min. With this new API, customers will get additional quota of X requests per VM per min, in addition to the 12 requests already available for Update VM API.

One of the most common tasks for cloud users is to manage their disk resources. Whether you need to add more storage, backup your data, or migrate to a different instance, you need to attach and detach disks from your virtual machines. This new API is designed to reduce the number of API calls and the latency involved in disk operations.

 

The new API is available as a RESTful endpoint that you can access from any programming language or tool. Since API is in Public Preview, there are no SLA guarantees on the API.

 

How to use the API?

 

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/aaaaaaaaaaaaaaaaaaaa/attachDetachDataDisks?api-version=2024-03-01 { "dataDisksToAttach": [ { "diskId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/Disk1" }, { "lun": 2, "diskId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/Disk2", "diskEncryptionSet": { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" }, "caching": "ReadWrite", "deleteOption": "Detach", "writeAcceleratorEnabled": false } ], "dataDisksToDetach": [ { "diskId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", "detachOption": "ForceDetach" }, { "diskId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" } ] }

 

 

For more information, please refer to API documentation.

 

Published on:

Learn more
Need help with this product?

We can help you with Announcing Public Preview of new attach/detach disks API for VMs/VMSS

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

Azure Compute Blog articles
Azure Compute Blog articles

Azure Compute Blog articles

Share post:

Related posts

Upcoming Changes to Instance Size Flexibility Ratios for Reserved VM Instances for M-series: What Yo

Overview In the ever-evolving landscape of cloud computing, it is crucial to stay informed about changes that may affect your usage and busine...

1 year ago

Exploring SUSE Enterprise Linux on Azure

Exploring SUSE Enterprise Linux on Azure In today's cloud-centric world, leveraging robust and reliable operating systems is crucial for busin...

1 year ago

Fine-tuning a Hugging Face Diffusion Model on CycleCloud Workspace for Slurm

Introduction Azure CycleCloud Workspace for Slurm (CCWS) is a new Infrastructure as a Service (IaaS) solution which allows the users to purpos...

1 year ago

Public Preview Announcement-On Demand Capacity Reservation in Azure in China

Today, we're announcing the public preview of on demand capacity reservations for Azure Virtual Machines in Azure in China Cloud . Y...

1 year ago

Breaking change for Window Server 2022 Image Users with .NET 6

Azure Marketplace media images for Windows Server 2022 currently include .NET 6, but going forward will not include a .NET version with the im...

1 year ago

Announcing the public preview of the new Azure FXv2-series Virtual Machines

Today, Microsoft is announcing the public preview of the new Azure FXv2-series Virtual Machines (VMs), based on the 5th Generation Intel® Xeon...

1 year ago

Effortlessly Migrate Azure VMs between zones

For various reasons you might come across a situation when you need to migrate your Azure VMs from one zone to another. Migrating Azure VMs be...

1 year ago

Announcing Public Preview of Instance Mix on Virtual Machine Scale Sets

Today, we’re excited to announce that the ability to specify multiple different VM sizes in your Virtual Machine Scale Sets (VMSS) with Flexib...

2 years ago

Announcing General Availability of Attach & Detach of Virtual Machines on Virtual Machine Scale Sets

Today, we’re thrilled to announce that the ability to attach or detach Virtual Machines (VMs) to and from a Virtual Machine Scale Set (VMSS) w...

2 years ago

Recovery options for Azure Virtual Machines (VM) affected by CrowdStrike Falcon agent

We are aware of an issue that started on 19 July 2024 at 04:09UTC, which resulted in customers experiencing unresponsiveness and startup failu...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.