Add-VBRAzureExternalRepository
Short Description
Adds Microsoft Azure Blob storage as an external repository.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Add-VBRAzureExternalRepository -AzureBlobFolder <VBRAzureBlobFolder> -Connection <VBRAzureBlobConnection> [-Name <string>] [-Description <string>] [-DecryptBackups] [-DecryptionKey <VBREncryptionKey>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet adds Microsoft Azure Blob storage as an external repository.
Note |
This cmdlet is not available for the Veeam Backup Starter license. |
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
AzureBlobFolder | Specifies a name of the folder in the external repository. Veeam Backup & Replication will import the backups from this folder into the backup infrastructure. | Accepts the VBRAzureBlobFolder object. To get this object, run the Get-VBRAzureBlobFolder cmdlet. | True | Named | True (ByValue) |
Connection | Specifies an active session with Microsoft Azure Blob storage that you want to add as an external repository. | Accepts the VBRAzureBlobConnection object. To create this object, run the Connect-VBRAzureBlobService cmdlet. | True | Named | False |
Name | Specifies a name of Microsoft Azure Blob storage that you want to add as an external repository. | String | False | Named | False |
Description | Specifies the description of Microsoft Azure Blob storage that you want to add as an external repository. | String | False | Named | False |
DecryptBackups | Indicates that Veeam Backup & Replication will decrypt encrypted backup files created by Cloud Protection Manager. | SwitchParameter | False | Named | False |
DecryptionKey | Specifies the password that Veeam Backup & Replication will use to decrypt the backup files. | Accepts the VBREncryptionKey object. To get this object, run the cmdlet. | False | Named | False |
Force | Indicates that the cmdlet will add an external repository without showing warnings in the PowerShell console. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Output Object
This cmdlet returns the VBRAzureExternalRepository object that contains settings on Microsoft Azure Blob storage added as an external repository.
Examples
Adding Microsoft Azure Blob Storage as External Repository
This example shows how to add Microsoft Azure Blob storage as an external repository to the Veeam Backup & Replication infrastructure.
$account = Get-VBRAzureBlobAccount $connection = Connect-VBRAzureBlobService -Account $account -RegionType Global -ServiceType ExternalRepository $container = Get-VBRAzureBlobContainer -Connection $connection -Name "Azure External Repository" $folder = Get-VBRAzureBlobFolder -Container $container -Connection $connection $repo = Add-VBRAzureExternalRepository -Name "AzureExternalRepo" -Description "New external repository" -AzureBlobFolder $folder -Connection $connection |
Perform the following steps:
- Get the Azure Blob folder:
- Run the Get-VBRAzureBlobAccount cmdlet. Save the result to the $account variable.
- Run the Connect-VBRAzureBlobService cmdlet. Specify the necessary parameters. Save the result to the $connection variable.
- Run the Get-VBRAzureBlobContainer cmdlet. Specify the necessary parameters. Save the result to the $container variable.
- Run the Get-VBRAzureBlobFolder cmdlet. Specify the necessary parameters. Save the result to the $folder variable.
- Run the Add-VBRAzureExternalRepository cmdlet. Specify the following settings:
- Specify the Name parameter value.
- Specify the Description parameter value.
- Set the $folder variable as the AzureBlobFolder parameter value.
- Set the $connection variable as the Connection parameter value.
Related Commands