[Backup] Add cli support for ASE backup operations#31269
[Backup] Add cli support for ASE backup operations#31269kumarutkarsh3b2166 wants to merge 86 commits intoAzure:devfrom
Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Hi @kumarutkarsh3b2166, |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
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>
|
|
Thank you for your contribution @kumarutkarsh3b2166! We will review the pull request and get back to you soon. |
…31214) * Upgrading SQL * re-record the tests * record the tests * Fixing the last set of tests
* Bug fix * remove test that is not used anymore --------- Co-authored-by: Jingnan <jingnanxu@microsoft.com>
@microsoft-github-policy-service agree company="Microsoft" |
@microsoft-github-policy-service agree company="Microsoft" |
| 'SAPHanaDatabase': 'SAPHanaDatabase', | ||
| 'SAPASE': 'SAPAseDatabase'} | ||
| 'SAPASE': 'SAPAseDatabase', | ||
| 'SAPAseDatabase': 'SAPAseDatabase'} |
There was a problem hiding this comment.
Do we need to add this to protectable_item_type_map as well? AFAIK SAPASE comes under the Azure Workload backup management type, so it would be required so that some operations (list protectable items, show protectable instance) don't fail.
| if (not cust_help.is_sql(backup_item_type) and not | ||
| cust_help.is_hana(backup_item_type) and not | ||
| cust_help.is_sapase(backup_item_type)): | ||
| raise InvalidArgumentValueError("Item must be either of type SQLDataBase " |
There was a problem hiding this comment.
nit grammar: either-or is for two arguments. Use "Item must be of type SQLDataBase, SAPHanaDatabase, or SAPAseDatabase"
src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_ase_commands.py
Show resolved
Hide resolved
…ink is updated to Hyperscale tier (Azure#31344) * Print warning message during update slo to Hyperscale for a geo-replicated database * Auto generated test changes after running tests in record mode * Revert "Auto generated test changes after running tests in record mode" This reverts commit 9cec2ad. * Recorded tests * Update logic to return boolean instead of tuple and function name changes * Recorded tests
…c-zone-balancing to support setting automatic zone rebalancing policy (Azure#31377)
Related command
az backup container show
az backup container list
az backup item list
az backup item show
az backup policy list
az backup item set-policy
az backup container register
az backup container re-register
az backup container unregister
Description
This PR adds support for ASE workload operations for existing operations. This does not break any existing command and hence is not a breaking change.
Testing Guide
Added unit tests in tests_ase_commands.py
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.