[Backup] az backup restore restore-disks: Add new parameter --cvm-os-des-id to specify the Disk Encryption Set ID to use for OS disk encryption#31853
Conversation
…up restore restore-disks
️✔️AzureCLI-FullTest
|
|
Hi @SourabhSomnathGholap, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| backup restore restore-disks | cmd backup restore restore-disks added parameter cvm_os_des_id |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
az backup restore restore-disks: Add new optional parameter --cvm-os-disk-encryption-set-id
az backup restore restore-disks: Add new optional parameter --cvm-os-disk-encryption-set-idaz backup restore restore-disks: Add new optional parameter --cvm-os-des-id
zubairabid
left a comment
There was a problem hiding this comment.
Some code cleanup suggestions for maintaining whatever consistency we can with this codebase. Add some sort of test as well.
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new optional parameter --cvm-os-des-id to the az backup restore restore-disks command to enable disk encryption set specification for OS disk encryption of Confidential VMs during restore operations.
- Adds new parameter
cvm_os_des_idto restore_disks function signatures - Implements logic to set SecuredVMDetails when the parameter is provided
- Configures command line argument with appropriate help text and aliases
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| custom_base.py | Adds cvm_os_des_id parameter to restore_disks function signature |
| custom.py | Implements the core logic for handling CVM OS disk encryption and adds SecuredVMDetails import |
| _params.py | Defines the command line argument with help text and aliases |
az backup restore restore-disks: Add new optional parameter --cvm-os-des-id : Add new optional parameter --cvm-os-des-id `
: Add new optional parameter --cvm-os-des-id `az backup restore restore-disks: Add new optional parameter --cvm-os-des-id
az backup restore restore-disks: Add new optional parameter --cvm-os-des-id az backup restore restore-disks: Add new parameter --cvm-os-des-id to specify the Disk Encryption Set ID to use for OS disk encryption
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az backup restore restore-disksDescription
In this PR new optional parameter
--cvm-os-des-idis added. This parameter will take DES id as input and use that for encrypting OS disk restored confidential VM.Testing Guide
History Notes
[Backup]
az backup restore restore-disks: Add new parameter--cvm-os-des-idto specify the Disk Encryption Set ID to use for OS disk encryptionThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.