azure-sdk-for-ruby icon indicating copy to clipboard operation
azure-sdk-for-ruby copied to clipboard

Creating a shared Image Gallery using Azure SDK for Ruby fails with NameError

Open swordfish2104 opened this issue 4 years ago • 1 comments

I'm trying to create a Shared image gallery in the following snippet:

puts 'Creating a Shared Image Gallery' gallery_name = 'TestRubySIG' imageGallery = ComputeModels::Gallery.new.tap do |sigimg| sigimg.type = 'Microsoft.Compute/galleries' sigimg.location = 'eastus' end

compute_client.Galleries.create_or_update(GROUP_NAME,gallery_name,imageGallery)

This throws the following error:

1: from SIGCreate.rb:199:in <main>' SIGCreate.rb:64:in run_SIGCreate': uninitialized constant Azure::Compute::Profiles::Latest::Mgmt::Models::Gallery (NameError)

Am i doing anything wrong here?

swordfish2104 avatar May 03 '21 20:05 swordfish2104

Hi @swordfish2104 the Ruby SDK is being retired (as indicated on the homepage), you might need to refer to the Azure REST API references

nickzhums avatar May 24 '21 08:05 nickzhums

Thank you for your interest in Azure SDKs. As detailed in this retirement announcement, this repo is no longer supported as of December 31st 2021. Please find the up-to-date list of languages and services supported with Azure SDKs here: https://aka.ms/azsdk

kurtzeborn avatar Jan 11 '23 03:01 kurtzeborn