[Gen2 VM] Send null uefiSettings along with 'Standard' securityType #30728
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Compute
az vm/vmss/image/disk/snapshot
feature-request
Possible-Solution
Similar-Issue
Milestone
Preconditions
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
andaz vm update
supportsecurityType
value Standard which allows end users to bypass or roll-back Trusted launch VM to Gen2 VM.However, currently:
az vm create
is sendingsecurityProfile
asnull
which is causing Trusted launch VM to be created. Request to send following API request instead,securityType
should be set toStandard
anduefiSettings
set tonull
:az vm update
command is passing blank or emptyuefiSettings
as 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 asnull
along withsecurityType 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
null
securityType
will be interpreted asTrustedLaunch
by API instead ofGen2
. Hence need to sendStandard
securityType
.Microsoft.Compute\UseStandardSecurityType
uefiSettings
in az cli version2.62.0
are sent as empty or blank. uefiSettings block should be sent asnull
whensecurityType
parameter is set to StandardThe text was updated successfully, but these errors were encountered: