question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] The Azure Compute RP version (2019-07-01) doesn't support Disk Create from Gallery Image Reference Id.

See original GitHub issue

The 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:open
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
weidongxu-microsoftcommented, Oct 1, 2020

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

0reactions
weidongxu-microsoftcommented, Oct 15, 2020

compute api-version upgrade happens in https://github.com/Azure/azure-libraries-for-net/pull/1151

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found