Azure Backup PowerShell samples

The following table links to PowerShell script samples that use Azure Backup to back up and restore data.

Script Description
Back up an encrypted virtual machine to Azure Back up all data on the encrypted virtual machine.
Find Registered Storage Account Find the Recovery Services vault where the storage account is registered
Undelete accidentally deleted File share Undelete accidentally deleted File share
Install the latest MARS agent Install the latest MARS agent on your on-premises Windows server.
Register MARS agent Register your on-premises Windows server or client machine with a Recovery Services vault.
Set file and folder backup policy for on-premises Windows server. Create a new policy or modify the current file and folder backup policy.
Set system state backup policy for on-premises Windows server. Create a new backup policy or modify the current system state backup policy.
Configure backup for on-premises Windows server. Configure backup for your on-premises Windows server.