this gives me all Disks of New Azure portal.
replacing the above Microsoft.Compute to Microsoft.ClassicCompute does not give me the classic portal disks as there is no resource type called disks under classiccompute namespace.
what is the alternate to get classic portal disks?
Have tried https://management.core.windows.net/subid/services/disks but this uses a different auth mechanism all together is there any other endpoint?
As you want to get the classic disks so we can Azure service management REST API that you mentioned.
https://management.core.windows.net/subscription-id/services/disks
How to authenticate Service Management Requests please refer to the official document .
Use X509 Certificate - You can always use X509 Certificate based authorization to authorize your SM API requests
X509Certificate2 certificate = GetStoreCertificate(Thumbprint);
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
request.ClientCertificates.Add(certificate);
How to create a new self-signed certificate please refer to document
We also need to upload the certificate under subscription.
The following is my test result via postman.
Other related links:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.