-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotPossible-SolutionSimilar-Issuefeature-request
Milestone
Description
Preconditions
- No need to upgrade Python SDK or the Python SDK is ready.
Related command
az vm create --security-type Standard
az vm update --security-type Standard
az vmss create --security-type Standard
az vmss update --security-type Standard
Resource Provider
Microsoft.Compute/virtualMachines
Description of Feature or Work Requested
Cmdlets az vm create and az vm update support securityType value Standard which allows end users to bypass or roll-back Trusted launch VM to Gen2 VM.
However, currently:
az vm createis sendingsecurityProfileasnullwhich is causing Trusted launch VM to be created. Request to send following API request instead,securityTypeshould be set toStandardanduefiSettingsset tonull:
securityProfile = @{
securityType = "Standard"
}az vm updatecommand is passing blank or emptyuefiSettingsas well which is causing below error from API.
ErrorMessage: Use of UEFI settings is not supported when security type is 'Standard'.
uefiSettings should be sent as null along with securityType Standard.
securityProfile = @{
securityType = "Standard"
}Minimum API Version Required
2020-12-01
Swagger PR link / SDK link
Virtual machine create with uefiSettings
Request Example
No response
Target Date
2025-03-01
PM Contact
ajkundna
Engineer Contact
psurad
Additional context
- We are implementing "Trusted launch as default" in REST API (currently in private preview). i.e., sending
nullsecurityTypewill be interpreted asTrustedLaunchby API instead ofGen2. Hence need to sendStandardsecurityType. - This feature requires AFEC registration
Microsoft.Compute\UseStandardSecurityType uefiSettingsin az cli version2.62.0are sent as empty or blank. uefiSettings block should be sent asnullwhensecurityTypeparameter is set to Standard
CVET-TJGutjahr
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotPossible-SolutionSimilar-Issuefeature-request