Share via

Disk API call

Police Suresh Kumar Reddy 61 Reputation points Microsoft Employee
2023-10-06T08:05:11.3966667+00:00

Can we use application credentials, does that support calling the disk API, would you please help confirm this?

Does the account need some permission or RBAC to access Disk API? Also, what would be the permission needed for the application?

Azure Disk Storage
Azure Disk Storage

A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.


1 answer

Sort by: Most helpful
  1. Siva Villa 285 Reputation points Microsoft Employee Moderator
    2023-10-13T10:01:50.67+00:00

    @suresh Reddy

    To access managed disks secured with Azure AD, the requesting user must have either the Data Operator for Managed Disks role, or a custom role with the following permissions: 

    • Microsoft.Compute/disks/download/action
    • Microsoft.Compute/disks/upload/action
    • Microsoft.Compute/snapshots/download/action
    • Microsoft.Compute/snapshots/upload/action User's image

    Please refer below article for more information.
    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/download-vhd?wt.mc_id=azmanageddisks_inproduct_diskexport_learnmoreexport_csasci&tabs=azure-portal#assign-rbac-role

    The following articles provide information on making REST API calls to disks, complete with sample examples.

    Disks - REST API (Azure Compute) | Microsoft Learn

    Please do let me know if you need any further assistance or information with regards to this question.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.