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] Unable to update replication status on Gallery Image Version

See original GitHub issue

Describe the bug Calling the Update API on a Gallery Image Version to change the replication does not work.

Expected behavior Able to update replication.

Actual behavior (include Exception or Stack Trace) ValidationException: Id cannot be null image

To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

IAzure azure = ...;
var galleryClient = azure.GalleryImageVersions;
var version = await galleryClient.GetByGalleryImageAsync("ValidResourceGroupName", "ValidGalleryName", "ValidImageName", "ValidImageVersion");
await version.Update().WithRegionAvailability(Region.UAENorth, 1).ApplyAsync();

Environment:

  • Name and version of the Library package used: Microsoft.Azure.Management.Fluent 1.30.0
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Azure Functions v3 runtime (.NET Core 3.0)
  • IDE and version : Visual Studio 16.4.5 (2019)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
axayjocommented, Mar 13, 2020

@xccc-msft, The service itself doesn’t require users to pass any of the source IDs (StorageProfile.OsDiskImage.Source.id, StorageProfile.DataDiskImages[i].Source.id, StorageProfile.source.id) in their Update Image Version calls. This must be an SDK issue. Adding @hyonholee here to take a look.

0reactions
chrisalexandercommented, May 27, 2020

Thanks all!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gallery Image Versions - Update - REST API (Azure ...
This is the aggregated replication status based on all the regional replication status flags. Name, Type, Description. Completed. string. Failed.
Read more >
Solved: RSA AM 8.7 Update Question - Replicas & Replication
Working on a the RSA AM 8.7 Patch 4 update and had a failure to complete on the primary. I confirmed replication status...
Read more >
Image replication fails with the error message
Image replication fails due to insufficient space in the datastore. ... Verify that the status of all components of the pod is green....
Read more >
Azure VM image version creation fail
I'm creating a VM image version, but it keeps failing with this message. Failed to update replication for VM image version 'XXXXXcomputegallery/ ...
Read more >
Amazon S3 replication failure reasons
View replication failures and failure error codes. ... To replicate objects with S3 Replication, enable versioning for the destination bucket.
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