You dont have javascript enabled! Please enable it!

How To Create Recovery Services Vault in Azure with PowerShell #AzureBackup

2 Min. Read

Introduction

Yesterday I was speaking at the CDC Germany 2018, a big Cloud Conference community event focusing on the Microsoft Cloud OS Platform, held in Hanau, Germany. With national and international speakers and over 400 attendees, it was a great conference!

I presented a session about protecting on-premises workloads to Azure, and how you can leverage Azure Backup to achieve GDPR compliance. In this demo-heavy session, I presented about Microsoft Azure Backup Server, System Center Data Protection Manager, and Azure Backup (awesome technologies).

I had a full house during the session, great turn up, good questions as well as great, more in-depth, discussions afterward. I had a fun time presenting there. Many thanks to Rachfahl IT-Solutions GmbH & Co. KG and my fellow MVP Carsten Rachfahl for putting this event together.

How To Create Recovery Services Vault in Azure with PowerShell #AzureBackup 1

Create Recovery Services vault

During my session, I showed the attendees how to create a Recovery Services Vault in Azure with PowerShell.

If you are interested to leverage it in your environment, here is a copy of that code. This assumes that you have already installed the Az PowerShell module on your machine before you run the script.

# Import-Module Azure Resource Manager Module
Import-Module AzureRM.Resources

# Log into Azure tenant and select the desired Subscription 
Login-AzureRMAccount
$SubscriptionID = Get-AzureRmSubscription | Out-GridView -Title "Select one Azure Subscription" -PassThru
Set-AzureRmContext -SubscriptionId $SubscriptionID.Id
    
# Register the required providers (not required if you've used Azure Backup under this subscription before)
Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.RecoveryServices"
Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.Backup"
    
# Get an existing resource group for our Recovery Vault (Updated the name as required)
$ResourceGroup = Get-AzureRmResourceGroup -Name "CDC-RG01"
    
# Create Recovery Services Vault (Change name as required)
$RSVault = New-AzureRmRecoveryServicesVault -Name "CDC-Germany-2018-RSV02" `
-ResourceGroupName $ResourceGroup.ResourceGroupName -Location $ResourceGroup.Location
    
# Set Vault Storage Redundancy To Locally Redundant
Set-AzureRmRecoveryServicesBackupProperties -Vault $RSVault -BackupStorageRedundancy LocallyRedundant

At the end of my session, Dominik Kowolik was selected as the winner, congratulations on the 100 Euro Amazon Voucher. Thanks to Altaro Software!

To all attendees… I hope you enjoyed the conference as much as I do.

Until next time!

How To Create Recovery Services Vault in Azure with PowerShell #AzureBackup 2

__
Thank you for reading my blog.

If you have any questions or feedback, please leave a comment.

-Charbel Nemnom-

Related Posts

Previous

How To Disable Protection For HyperV VMs To AzureSiteRecovery #ASR #Azure #CDCGermany #MVPbuzz

How To Remove #AzureStack AD Applications From Azure Active Directory with PowerShell #AzureAD #ASDK

Next

Let me know what you think, or ask a question...

error: Alert: The content of this website is copyrighted from being plagiarized! You can copy from the 'Code Blocks' in 'Black' by selecting the Code. Thank You!