question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating a SIG image definition with security type TrustedLaunchSupported fails

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sandeepraichuracommented, Oct 14, 2022

@malt3 @litian1992 - I’m looking into this, and I’ll keep you posted soon

1reaction
litian1992commented, Oct 11, 2022

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:

...
  "features": [
    {
      "name": "SecurityType",
      "value": "TrustedLaunch"
    }
  ],
...

And so I’m able to create one again using CLI with SecurityType equal to TrustedLaunch. But then where I fail to execute is it equal to TrustedLaunchAndConfidentialVmSupported. Any help please?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found