CLI - Gen2+TLVM As Default - New Az VM OS Disk
See original GitHub issueRelated command
Resource Provider
Microsoft.Compute/disks
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:
NOTE: Below scenarios are applicable only for OS Disks, i.e., if command is used to create Data Disk, below scenarios and change requests do not apply.
Scenario 1 - User creates empty OS disk using az disk create --size-gb 10 --os-type
Present Behavior | Updated Behavior post change |
---|---|
New disk with create option empty:
|
Updated default parameters and sequence:
|
Scenario 2 - User creates OS disk from PIR image using az disk create --image-reference
Present Behavior | Updated Behavior post change |
---|---|
New disk with create option FromImage:
|
Updated default parameters and sequence:
|
Scenario 3 - User creates OS disk from PIR image using az disk create --gallery-image-reference
Similar to Scenario 2 described above, image capabilities can be queried using az sig image-version show.
Notification Message if needed to be provided to end users prior to making changes - Starting xx/xx/xxxx az disk 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-12-01
Swagger PR link
Request Example
Create disk with Trusted Launch Security Type
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.
- Image capability to support Gen2 or Trusted Launch VM can be queried using API Virtual Machines Images GET API
- For Gen2, use property hyperVGeneration with value of V2
- For Trusted Launch, use features -> SecurityType with value TrustedLaunchSupported
- TLVM-as-default implementation in Azure Portal is planned for December 2022.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@yanzhudd - Is it ok from CLI perspective to call-out
breaking change window
for end users? Or if we can simplify perhaps, likeStarting Build 2023 event, az disk 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
, thoughts?@yanzhudd
CreateOption
is set to FromImageCreateOption
is Import, Upload or Empty and--os-type
parameter is provided.CreateOption
is set to Empty