forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#94 from zubairabid/migrate-dataprotection-aaz
Migrate dataprotection backup-vault to AAZ-dev-tools and add support for immutable vaults and soft delete
- Loading branch information
Showing
20 changed files
with
9,583 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [Command] _dataprotection backup-vault create_ | ||
|
||
Create a BackupVault resource belonging to a resource group. | ||
|
||
## Versions | ||
|
||
### [2022-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2022-12-01.xml) **Experimental** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2022-12-01 --> | ||
|
||
#### examples | ||
|
||
- Create BackupVault | ||
```bash | ||
dataprotection backup-vault create --type "None" --location "WestUS" --azure-monitor-alerts-for-job-failures "Enabled" --storage-setting "[{type:'LocallyRedundant',datastore-type:'VaultStore'}]" --tags key1="val1" --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` | ||
|
||
- Create BackupVault With MSI | ||
```bash | ||
dataprotection backup-vault create --type "systemAssigned" --location "WestUS" --azure-monitor-alerts-for-job-failures "Enabled" --storage-setting "[{type:'LocallyRedundant',datastore-type:'VaultStore'}]" --tags key1="val1" --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _dataprotection backup-vault delete_ | ||
|
||
Delete a BackupVault resource from the resource group. | ||
|
||
## Versions | ||
|
||
### [2022-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2022-12-01.xml) **Experimental** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2022-12-01 --> | ||
|
||
#### examples | ||
|
||
- Delete BackupVault | ||
```bash | ||
dataprotection backup-vault delete --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# [Command] _dataprotection backup-vault list_ | ||
|
||
Gets list of backup vault in a subscription or in a resource group. | ||
|
||
## Versions | ||
|
||
### [2022-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHM=/2022-12-01.xml) **Experimental** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.dataprotection/backupvaults 2022-12-01 --> | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults 2022-12-01 --> | ||
|
||
#### examples | ||
|
||
- List backup vault in a subscription | ||
```bash | ||
dataprotection backup-vault list | ||
``` | ||
|
||
- List backup vault in a resource group | ||
```bash | ||
dataprotection backup-vault list -g sarath-rg | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [Command] _dataprotection backup-vault show_ | ||
|
||
Get a resource belonging to a resource group. | ||
|
||
## Versions | ||
|
||
### [2022-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2022-12-01.xml) **Experimental** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2022-12-01 --> | ||
|
||
#### examples | ||
|
||
- Get BackupVault | ||
```bash | ||
dataprotection backup-vault show --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` | ||
|
||
- Get BackupVault With MSI | ||
```bash | ||
dataprotection backup-vault show --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _dataprotection backup-vault update_ | ||
|
||
Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. | ||
|
||
## Versions | ||
|
||
### [2022-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2022-12-01.xml) **Experimental** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2022-12-01 --> | ||
|
||
#### examples | ||
|
||
- Patch BackupVault | ||
```bash | ||
dataprotection backup-vault update --azure-monitor-alerts-for-job-failures "Enabled" --tags newKey="newVal" --resource-group "SampleResourceGroup" --vault-name "swaggerExample" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# [Group] _dataprotection backup-vault_ | ||
|
||
Manage backup vault with dataprotection. | ||
|
||
## Commands | ||
|
||
- [create](/Commands/dataprotection/backup-vault/_create.md) | ||
: Create a BackupVault resource belonging to a resource group. | ||
|
||
- [delete](/Commands/dataprotection/backup-vault/_delete.md) | ||
: Delete a BackupVault resource from the resource group. | ||
|
||
- [list](/Commands/dataprotection/backup-vault/_list.md) | ||
: Gets list of backup vault in a subscription or in a resource group. | ||
|
||
- [show](/Commands/dataprotection/backup-vault/_show.md) | ||
: Get a resource belonging to a resource group. | ||
|
||
- [update](/Commands/dataprotection/backup-vault/_update.md) | ||
: Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# [Group] _dataprotection_ | ||
|
||
Manage Data Protection. | ||
|
||
## Subgroups | ||
|
||
- [backup-vault](/Commands/dataprotection/backup-vault/readme.md) | ||
: Manage backup vault with dataprotection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.