Forum Discussion
pamnani07
Jun 01, 2021Copper Contributor
Azure blob operational backup
Recently we operation backup for azure blob (storage acct)gone to GA.
We are trying to implement the same and it has pre-requisite i.e . backup vault should exist.
we tried to find out option to created the backup vault using CLI, Powershell but only the avaialble option is portal.
Can you suggest how to create the same using command line so that we can have it in our infra pipeline code?
Thanks!
4 Replies
just correcting the typo
If you need a basic backup vault with default settings, the Azure CLI's az dataprotection backup-vault create is a good choice.
check the following commands
# Step 1: Login to Azure az login # Step 2: Create a resource group az group create --name MyResourceGroup --location eastus # Step 3: Create a backup vault az backup vault create --resource-group MyResourceGroup --name MyBackupVault --location eastusor
# Step 1: Login to Azure Connect-AzAccount # Step 2: Create a resource group New-AzResourceGroup -Name MyResourceGroup -Location eastus # Step 3: Create a backup vault $backupVaultParams = @{ ResourceGroupName = "MyResourceGroup" Name = "MyBackupVault" Location = "eastus" } New-AzRecoveryServicesVault @backupVaultParams- NilayDShah
Microsoft
Please refer automation support documentation here:
https://learn.microsoft.com/en-us/azure/backup/backup-blobs-storage-account-ps?source=recommendations&tabs=operational-backup