Update Shared Image gallery definition: Need to add SecurityType with TrustedLaunch value

Maulin Shah (Crest Data Systems Private Lim) 40 Reputation points Microsoft Vendor
2024-03-28T16:54:15.68+00:00

I am using Azure compute galleries for multiple purpose and for that I have multiple Image definition which I have created using the below command

az sig image-definition create --gallery-image-definition trusted-launch-test --gallery-name dev_image_gallery --offer cbl-mariner --os-type Linux --publisher MicrosoftCBLMariner --hyper-v-generation V2 --sku trusted-launch-test --subscription 00000000-0000-0000-0000-000000000000 -g dev-image

Now I want to add SecurityType with TrustedLaunch value in GalleryImageFeature and for that I am using below command but that throws an error

az sig image-definition update --gallery-image-definition trusted-launch-test- --gallery-name dev_image_gallery --subscription 00000000-0000-0000-0000-000000000000 -g dev-image --add features SecurityType="TrustedLaunchSupported"

Error:

(PropertyChangeNotAllowed) Changing property 'galleryImage.properties.features' is not allowed.
Code: PropertyChangeNotAllowed
Message: Changing property 'galleryImage.properties.features' is not allowed.
Target: galleryImage.properties.features

So can someone look into this and guide what's the exact process for this?

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
345 questions
0 comments No comments
{count} votes

Accepted answer
  1. Martin Therkelsen 1,405 Reputation points MVP
    2024-03-29T09:50:58.0366667+00:00

    Hi Maulin,

    Changing these values is not allowed, so the only option is to create a new gallery and place the images with the new setting here. It is the same thing when you have Hypervisor versions 1 and 2; they can't coexist.

    0 comments No comments

0 additional answers

Sort by: Most helpful