How to access file in Azure disk using REST API

Nuwan Wickramanayaka 81 Reputation points
2023-04-19T13:43:50.1766667+00:00

Hi all I am required to access files Azure disk using REST API (deployed app service). Azure disk is mounted to another VM. This question is related https://learn.microsoft.com/en-us/answers/questions/1220729/access-files-in-vm-using-azure-function-app. Here I don't have Azure file share just I want to access file in Azure disk using REST API. Kindly give me an direction on this. Nuwan

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,020 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,532 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
668 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,944 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alistair Ross 7,466 Reputation points Microsoft Employee
    2023-04-20T15:02:36.4633333+00:00

    You cannot do it via a REST API. You would need to use SSH. Here is show to do it using Secure Copy https://learn.microsoft.com/en-us/azure/virtual-machines/copy-files-to-vm-using-scp

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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