You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dataprotection] Add autoprotection support for blob backup instances (Azure#9820)
* Add autoprotection support for blob backup instances
- Bump API version to 2026-03-01 for backup-instance create, update,
validate-for-backup, and validate-for-update commands
- Add --auto-protection and --exclusion-prefixes parameters to
initialize-backupconfig for AzureBlob and AzureDataLakeStorage
- Add get_blob_autoprotection_config helper with support for
BlobBackupDatasourceParametersForAutoProtection and
AdlsBlobBackupDatasourceParametersForAutoProtection object types
- Add validation: auto-protection is mutually exclusive with
--container-list and --include-all-containers
- Add 9 unit tests covering positive and negative scenarios
- Bump extension version to 1.10.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update src/dataprotection/HISTORY.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix three-state flag truthiness checks for AKS and mutual exclusion validation
- Use 'is not None' instead of truthiness for auto_protection and
auto_protection_exclusion_prefixes in AKS validation
- Use 'is not None' for include_all_containers in auto-protection
mutual exclusion check
- Fix RST underline length for 1.10.0 in HISTORY.rst
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Skip autoprotection tests in CI due to client factory auth requirement
The initialize-backupconfig command uses cf_blob_container_mgmt client
factory which requires Azure login. This causes test failures in CI
where no auth is available. Tests pass locally with az login.
Same pattern as existing AKS config test.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Re-record VCR tests for API 2026-03-01 and skip AKS test
- Re-recorded blob update_policy, disk create_backup_delete, and softdelete tests
with new resources in subscription 59e574f1 (eastus)
- Updated test files with new resource references (vault, storage, disk, BI names)
- Added @unittest.skip to AKS update_aks_configuration test (BCDR tag policies
prevent AKS cluster creation in available subscriptions)
- All 64 tests pass, 23 skipped, 0 failures
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Selasie Mortey <smortey@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/dataprotection/HISTORY.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Release History
4
4
===============
5
+
1.10.0
6
+
++++++
7
+
* Bumped API version to 2026-03-01 for backup-instance create, update, validate-for-backup, and validate-for-update commands.
8
+
* `az dataprotection backup-instance initialize-backupconfig`: New parameters `--auto-protection` and `--exclusion-prefixes` to enable automatic protection of new blob containers for AzureBlob and AzureDataLakeStorage datasource types, with optional exclusion rules by container name prefix.
9
+
5
10
1.9.0
6
11
+++++
7
12
* `az dataprotection enable-backup trigger`: New command to enable backup for AKS clusters with a single command. Supports preset backup strategies (Week, Month, DisasterRecovery) and Custom strategy with user-provided configuration.
help="Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes candidates. If no rules are present, all containers are considered eligible when enabled = true.",
0 commit comments