Creating a SIG image definition with security type TrustedLaunchSupported fails
See original GitHub issueDescribe the bug
Command Name
az sig image-definition create
Errors:
(InvalidParameter) The value 'TrustedLaunchSupported' for feature 'SecurityType' is invalid. Allowed characters are English alphanumerical characters with spaces and commas. The length of the value cannot exceed 100 characters.
Code: InvalidParameter
Message: The value 'TrustedLaunchSupported' for feature 'SecurityType' is invalid. Allowed characters are English alphanumerical characters with spaces and commas. The length of the value cannot exceed 100 characters.
Target: galleryImage.properties.features
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Create SIG
az sig image-definition create --resource-group {} -l {} --gallery-name {} --gallery-image-definition {} --publisher {} --offer {} --sku {} --os-type Linux --os-state generalized --hyper-v-generation V2 --features SecurityType=TrustedLaunchSupported
Expected Behavior
Image definition should be created successfully. See examples in the docs: https://learn.microsoft.com/en-us/cli/azure/sig/image-definition?view=azure-cli-latest#az-sig-image-definition-create
Environment Summary
Linux-5.15.0-48-generic-x86_64-with-glibc2.35, Ubuntu 22.04.1 LTS
Python 3.10.5
Installer: DEB
azure-cli 2.40.0
Extensions:
ssh 1.0.1
account 0.2.2
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Remove TVMSupported and TVMandCVMSupported from CLI ...
In the following examples for SIG image definition, TrustedLaunchSupported and ... --features SecurityType=TrustedLaunchSupported. az sig ...
Read more >Deploy a trusted launch VM - Azure Virtual Machines
Create a new image definition by providing a name, publisher, offer and SKU details. The Security Type of the image definition should already...
Read more >Azure Trusted Launch and Custom Images - even for AVD
More importantly, a trusted launch VM can only be created from vanilla ... Gallery (configure the VM image definition to support Secure Boot ......
Read more >What's new | Citrix DaaS
Support for changing the storage type to a lower tier when a VM is shut down in ... Catalog creation fails if the...
Read more >azure-cli - bytemeta
Creating a SIG image definition with security type TrustedLaunchSupported fails. michael-crawford. michael-crawford OPEN · Updated 2 hours ago ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@malt3 @litian1992 - I’m looking into this, and I’ll keep you posted soon
If you create an image definition with Trusted Launch supported (in portal or anyway), you will see something like below with
az sig image-definition show
:And so I’m able to create one again using CLI with
SecurityType
equal toTrustedLaunch
. But then where I fail to execute is it equal toTrustedLaunchAndConfidentialVmSupported
. Any help please?