Skip to content

Gallery 2022_03_03 Changes #24087

@tiregan

Description

@tiregan

Related command

az sig image-version
az sig share

Resource Provider

Az.Compute

Description of Feature or Work Requested

Need to update to include changes in latest Swagger release: Azure/azure-rest-api-specs#20396

Minimum API Version Required

2022-03-03

Target Date

10/14

Description of changes and examples

Regional exludeFromLatest flag
See Gallery.json line 2535

az sig image-version update -g EastUS-rg --gallery-name Terraform_sig --gallery-image-definition Disk_def --gallery-image-version 1.0.0 --add publishingProfile.targetRegions name=eastus regionalReplicaCount=3 regionalExcludeFromLatest=true

Safety Profile
See Gallery.json line 2424

az sig image-version create --gallery-image-definition $galleryDefinitionName --gallery-image-version $galleryImageVersionName --gallery-name $galleryName --resource-group $rg --location $region --managed-image $vmResourceID --target-regions $region=$replicaCount1=$storageAccount1 $region2=$replicaCount2=$storageAccount2 --set safetyProfile.allowDeletionOfReplicatedLocations=true

Create SIG Image Version from Community Gallery SIG Image Version
very similar to existing 'Add a new image version from another image version' example, but for community gallery it needs to be in new api field. See Gallery.json line 2741

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

PrivacyStatementUri & Eula on direct shared galleries.
See SharedGallery.json line 558 & 562

az sig share add --resource-group MyResourceGroup --gallery-name MyGallery
--gallery-image-definition MyImage
--subscription-ids subId1 subId2 --tenant-ids tenantId1 tenantId2 --privacy-statement-uri https://www.microsoft.com/en-us/ -eula https://www.microsoft.com/en-us/

Metadata

Metadata

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions