-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Gen2 VM] Send null uefiSettings along with 'Standard' securityType #30728
Comments
Thank you for opening this issue, we will look into it. |
Here are some similar issues that might help you. Please check if they can solve your problem. Possible solution (Extracted from existing issue, might be incorrect; please verify carefully) This worked for me on EL8:
Reference: |
@AjKundnani Sorry, as this sprint is already fully scheduled, can we postpone it to the next sprint (probably before mid April)? |
@zhoxing-ms, before mid-April 2025 works, thanks in advance. |
This issue was potentially solved with #28397 but most likely the output of the fix would be Trusted launch VM. |
Hi @AjKundnani when I create a VM with setting the securityType to "Standard", an error is reported: The properties are {
"hardwareProfile": {
"vmSize": "Standard_DS1_v2"
},
"networkProfile": {
"networkInterfaces": [
{
"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zytest/providers/Microsoft.Network/networkInterfaces/1vm1VMNic",
"properties": {
"deleteOption": null
}
}
]
},
"storageProfile": {
"osDisk": {
"createOption": "fromImage",
"name": null,
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": null
}
},
"imageReference": {
"publisher": "OpenLogic",
"offer": "CentOS",
"sku": "7_6-gen2",
"version": "latest"
}
},
"osProfile": {
"computerName": "1vm1",
"adminUsername": "azureuser",
"adminPassword": "[parameters('adminPassword')]"
},
"securityProfile": {
"securityType": "Standard"
}
} Could you please take a look at this error? |
@yanzhudd - Is the required AFEC |
Hi @AjKundnani |
@yanzhudd - Will share the results tentatively today or early next week. |
@yanzhudd - All test results passed, the build / package is meeting the requirements / expectations. |
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: