[BUG] The Azure Compute RP version (2019-07-01) doesn't support Disk Create from Gallery Image Reference Id.
See original GitHub issueThe current version of Fluent .NET SDK (using 2019-07-01) does not support create disk from gallery. This can however be done using latest Java (about 2020-05-01) but fails on:
DiskInner disk1 = new DiskInner()
{
OsType = OperatingSystemTypes.Linux,
Location = Region.JapanEast.Name,
CreationData = new CreationData()
{
CreateOption = DiskCreateOption.FromImage,
ImageReference = new ImageDiskReference()
{
Id = "/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourcegroups/rg-weidxu/providers/Microsoft.Compute/galleries/gallery1weidxu/images/image1weidxu/versions/0.0.1",
},
},
};
The Azure CLI has an exposed method to create a disk using gallery image reference id: az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference $id
I urgently need it to support my application. Since there is no way to create a blob uri from the marketplace shared image gallery.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Troubleshoot images in an Azure Compute Gallery
Learn how to troubleshoot problems with shared images in Azure ... The Azure Compute Gallery does not currently support Ultra SSD disks ...
Read more >Share VM images in a compute gallery - Azure
Learn how to use an Azure Compute Gallery to share VM images. ... to create a VM, the image version is used to...
Read more >Export an image version to a managed disk - Azure
You can export an image version's OS or data disk as a managed disk from an image version, which is stored in an...
Read more >Troubleshoot Azure VM Image Builder
This article helps you troubleshoot common problems and errors you might encounter when you're using Azure VM Image Builder.
Read more >Create a VM using a specialized image version
Create a VM from a specialized image version stored in an Azure Compute Gallery (formerly known as Shared Image Gallery).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also please aware of the next generation .NET SDK (the ADAL used in current Fluent .NET SDK is outdated, and next gen has MSAL).
https://aka.ms/azure-sdk-dotnet-mgmt
https://azure.github.io/azure-sdk/releases/latest/dotnet.html
compute api-version upgrade happens in https://github.com/Azure/azure-libraries-for-net/pull/1151