azure-sdk-for-net: [BUG] Unable to update replication status on Gallery Image Version
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

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 --infooutput for .NET Core projects): Azure Functions v3 runtime (.NET Core 3.0) - IDE and version : Visual Studio 16.4.5 (2019)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (3 by maintainers)
@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.