CLI - Gen2+TLVM As default - New VM with minimal Inputs
See original GitHub issueRelated command
- az vm create --name ‘vmname’ --resource-group ‘vm-rgname’
- az vmss create --name ‘vmssname’ --resource-group ‘rgname’
Resource Provider
Microsoft.Compute/virtualMachines
Description of Feature or Work Requested
Gen2+TLVM as default (Preferred)
As part of making compute layer secure for customers to deploy workloads, request is to make Trusted Launch (GA Date: November 2021) as default deployment option in CLI. Following changes will need to be made for same:
Scenario 1 - User runs az vm create
with minimal parameters.
Present Behavior | Updated Behavior post change |
---|---|
New VM with minimal parameters:
|
Updated default parameters:
|
Notification Message if needed to be provided to end users prior to making changes - Starting xx/xx/xxxx az vm create command will deploy Trusted Launch VM by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch
Scenario 2 - User runs az vmss create
with minimal parameters.
Present Behavior | Updated Behavior post change |
---|---|
New VMSS with minimal parameters:
|
Updated default parameters:
|
Notification Message if needed to be provided to end users prior to making changes - Starting xx/xx/xxxx az vmss create command will deploy Trusted Launch VM by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch
NOTE: Please review limitations Trusted Launch VM Limitations to assess any impact for CLI users.
Minimum API Version Required
2021-11-01
Swagger PR link
Request Example
Target Date
2022-10-10
Additional context
- Target date for implementing notification for user is to match ignite event scheduled for
2022-10-12
- My understanding is before change is implemented, user will need to be provided with notification, hence target date for implementation of the changes is Build event 2023 (May 2023)
- Multiple Trusted Launch VM limitations will be tentatively addressed before actual implementation date of May 2023.
- VM Size / SKU capability to support Gen2 or Trusted Launch VM can be queried using API Resource SKU List API
- For Gen2 refer to property HyperVGeneration with supported value of v2
- For trusted launch VM, refer to property TrustedLaunchSupportDisabled set to true, for sizes which support Gen2 but not Trusted Launch.
- Image capability to support Gen2 or Trusted Launch VM can be queried using API Virtual Machines Images GET API
- TLVM-as-default implementation in Azure Portal is planned for December 2022.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
Done, thanks.
@zhoxing-ms That is correct, for this scenario we assume user has not passed values to parameter
--image
nor for--attach-os-disk
. For scenario where users will pass specific values (and other scenarios), I’ll be submitting different request. #23450