Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update "az sig image-version create --managed-image" for different source #22424

Closed
kangsun-ctrl opened this issue May 13, 2022 · 1 comment · Fixed by #22645
Closed

update "az sig image-version create --managed-image" for different source #22424

kangsun-ctrl opened this issue May 13, 2022 · 1 comment · Fixed by #22645
Assignees
Labels
Compute az vm/vmss/image/disk/snapshot feature-request

Comments

@kangsun-ctrl
Copy link
Contributor

kangsun-ctrl commented May 13, 2022

Related command

az sig image-version

Resource Provider

Az.Compute

Description of Feature or Work Requested

Currently when we create sig image from vm/another sig, users need to use "--managed-image" command and that's not precise, user should not use "--managed-image" for any other source except managed image. So we need to update the command and doc: https://docs.microsoft.com/en-us/cli/azure/sig/image-version?view=azure-cli-latest#az-sig-image-version-create

Proposed design:

for VM source:
az sig image-version create --resource-group MyResourceGroup
--gallery-name MyGallery --gallery-image-definition MyImage
--gallery-image-version 1.0.0
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM

for gallery image version source:
az sig image-version create --resource-group MyResourceGroup
--gallery-name MyGallery --gallery-image-definition MyImage
--gallery-image-version 1.0.0
--image-version /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/galleries/MyGallery/images/MyImageDefinition/versions/1.0.0

Minimum API Version Required

this does not need any recent api model change, just need to match it to galleryImageVersion - storageProfile - id
Swagger Link

Target Date

06/30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment