[Backup] backup protection reconfigure: Add new command to support reconfiguring backup to an alternate vault#32193
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @zubairabid, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| backup protection reconfigure | cmd backup protection reconfigure added |
|
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>
|
|
Requesting review for the current (October) milestone. Code changes were completed earlier, PR had not been raised. Informed @zhoxing-ms offline about the same requirement. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new "reconfigure" command to the Azure CLI backup module that enables moving backup protection from one Recovery Services vault to another with a single command, replacing the current multi-step manual process.
Key changes:
- Introduces
az backup protection reconfigurecommand with unified interface for VM, Azure File Share, and Azure Workload backup types - Implements workload-specific reconfiguration logic that handles disabling protection in source vault, container management, and enabling protection in destination vault
- Adds comprehensive parameter validation and help documentation
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| custom_base.py | Main entry point with validation and dispatch logic for reconfiguration |
| custom.py | VM-specific reconfiguration implementation |
| custom_afs.py | Azure File Share reconfiguration implementation |
| custom_wl.py | Azure Workload (SQL/HANA) reconfiguration implementation |
| commands.py | Command registration for the new reconfigure command |
| _params.py | Parameter definitions for the reconfigure command |
| _validators.py | CLI-level validation functions for reconfiguration |
| _help.py | Help documentation and examples for the new command |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
backup protection reconfigure: Add new command to support reconfiguring backup to an alternate vault
Related command
az backup protection reconfigureDescription
Helper command to enable reconfiguring protection with a single command, as opposed to the current approach of multiple commands for the operation.
Testing Guide
History Notes
This 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.