Skip to content

Regression in v2.59.0 in az sig image-version create with cross-resource group image version creationΒ #28700

@maruel

Description

@maruel

Describe the bug

@Jing-song I'm getting a new error and I suspect this is due to #28627. The use case is that I create a temporary VM in a temporary resource group (rsc_tmp). I then create an image version in my permanent resource group (rsc_imgs).

Related command

az sig image-version create --resource-group rsc_imgs --gallery-name base_images --gallery-image-definition win11-23h2-pro-x64 --gallery-image-version 2024.04.05 --replication-mode Full --replica-count 1 --managed-image /subscriptions/<guid>/resourceGroups/rsc_tmp/providers/Microsoft.Compute/virtualMachines/vm-win11-x64 --storage-account-type premium_lrs

Errors

Code: InvalidParameter
Message: The gallery image version source id: '/subscriptions/<guid>/resourceGroups/rsc_tmp/providers/Microsoft.Compute/virtualMachines/vm-win11-x64' must be specified in 'galleryImageVersion.properties.storageProfile.source.virtualMachineId'.
Target: galleryImageVersion.properties.storageProfile.source

Issue script & Debug output

N/A

Expected behavior

Used to work in v2.58.0. I confirmed by downgrading from v2.59.0 to v2.58.0 and the command succeeded again.

Environment Summary

azure 2.59.0
macOS

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions