-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Preconditions
- No need to upgrade Python SDK or the Python SDK is ready.
Related command
az disk create
az disk grant-access
Resource Provider
Microsoft.Compute/disks, Microsoft.Compute/snapshots
Description of Feature or Work Requested
Feature request to add output value, new parameter for following commands to support Confidential VM OS Disks
az disk create
az disk grant-access
Feature request is to provide customers with Confidential VM disk management:
Import managed OS disk for Confidential VM with an additional attribute in the request - securityMetadataUri
Export managed OS disk for Confidential VM returns an additional attribute in the response - securityMetadataAccessSAS
-
az disk create
New Parameter
--security-metadata-uri
New string parameter--security-metadata-urifor command az disk create:Allows customer to pass Blob URI for VM Metadata VHD.
When specified, the command should interpret that disk will be imported from un-managed VHD in storage account or another managed disk for Confidential VM OS Disk Security Type.
This is the URI of a blob to be imported into VM metadata. -
az disk grant-access
Output would show additional
securityMetadataAccessSASin response.
Examples:
-
Secure Import of Confidential VM OS Disk
Create disk with--security-metadata-uriparameter:az disk create -n $diskName -g $resourceGroup
-l $location --os-type Windows --hyper-v-generation V2
--security-type "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
--source $sourceDiskVhdUri --security-data-uri $guestStateDiskVhdUri --security-metadata-uri $metadataDiskVhdUri \
--sku standard_lrs -
Export of Confidential VM OS Disk
Grant access to generate accessSas, securityDataAccessSAS,
securityMetadataAccessSASusing --secure-vm-guest-state-sas parameterdiskSas = $(az disk grant-access -n $diskName -g $resourceGroupName
--access-level Write --duration-in-seconds 86400
--secure-vm-guest-state-sas)Returned value schema:
{ "accessSas": "https://md-impexp-t0rdsfgsdfg4.blob.core.windows.net/w2c3mj0ksfgl/abcd?sv=2017-04-17&sr=b&si=600a9281-d39e-4cc3-91d2-923c4a696537&sig=xXaT6mFgf139ycT87CADyFxb%2BnPXBElYirYRlbnJZbs%3D", "securityDataAccessSAS": "VM Guest State Sas URI" "securityMetadataAccessSAS": "VM Metadata Sas URI" }
Minimum API Version Required
2025-01-02
Swagger PR link / SDK link
Azure/azure-rest-api-specs#35011
Request Example
No response
Target Date
2025-09-02
PM Contact
raginjup, geg, runcai
Engineer Contact
aayushkher, raharwadekar
Additional context
No response