Add-VBRAzureExternalRepository
Short Description
Adds external Microsoft Azure Blob storage repository to the backup infrastructure.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRAzureExternalRepository [-Name <String>] [-Description <String>] -AzureBlobFolder <VBRAzureBlobFolder> -Connection <VBRAzureBlobConnection> [-MountServerOptions <VBRRepositoryMountServerOptions[]>] [-DecryptBackups] [-DecryptionKey <VBREncryptionKey>] [-Force] [-AzureSubscription <VBRAzureSubscription>] [<CommonParameters>] |
Detailed Description
This cmdlet adds external Microsoft Azure Blob storage repository to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AzureBlobFolder |
Specifies a name of an Azure Blob storage container where Azure VMs backups reside.
Accepts the |
True |
Named |
True (ByValue) |
|
|
AzureSubscription |
Specifies subscriptions associated with a Microsoft Azure account.
Accepts the |
False |
Named |
False |
|
|
Connection |
Specifies an active session with Microsoft Azure Blob storage that you want to add as an external repository.
Accepts the |
|
True |
Named |
False |
|
DecryptBackups |
Defines that Veeam Backup & Replication will decrypt encrypted backups.
Default: |
|
False |
Named |
False |
|
DecryptionKey |
Specifies the password that Veeam Backup & Replication will use to decrypt the backup files. |
|
False |
Named |
False |
|
Description |
Specifies a description of Microsoft Azure Blob storage that you want to add as an external repository. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add an external repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
MountServerOptions |
Specifies the mount server settings for the servers that you plan to use as mount servers during the restore process.
Accepts the |
False |
Named |
True (ByPropertyName) |
|
|
Name |
Specifies a name of Microsoft Azure Blob storage that you want to add as an external repository. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRAzureExternalRepository object that contains settings of Microsoft Azure Blob repositories added to the backup infrastructure.
Examples
Adding Microsoft Azure Blob Storage as External Repository
This example shows how to add the Microsoft Azure Blob storage as an external repository to the backup 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 Add-VBRAzureExternalRepository -Name "AzureExternalRepo" -Description "New external repository" -AzureBlobFolder $folder -Connection $connection |
Perform the following steps:
- Get the Azure Blob folder:
- Run the
Get-VBRAzureBlobAccountReturns Microsoft Azure Blob credentials records. cmdlet. Save the result to the$accountvariable. - Run the
Connect-VBRAzureBlobServiceConnects to Microsoft Azure Blob storage. cmdlet. Set the$accountvariable as theAccountparameter value. Specify theRegionTypeandServiceTypeparameter values. Save the result to the$connectionvariable. - Run the
Get-VBRAzureBlobContainerReturns Azure Blob containers. cmdlet. Set the$connectionvariable as theConnectionparameter value. Specify theNameparameter value. Save the result to the$containervariable. - Run the
Get-VBRAzureBlobFolderReturns Microsoft Azure Blob folders. cmdlet. Set the$containervariable as theContainerparameter value. Set the$connectionvariable as theConnectionparameter value. Save the result to the$foldervariable.
- Run the
- Run the
Add-VBRAzureExternalRepositorycmdlet. Specify the following settings:- Specify the
Nameparameter value. - Specify the
Descriptionparameter value. - Set the
$foldervariable as theAzureBlobFolderparameter value. - Set the
$connectionvariable as theConnectionparameter value.
- Specify the
Related Commands
Get-VBRAzureBlobAccountReturns Microsoft Azure Blob credentials records.Connect-VBRAzureBlobServiceConnects to Microsoft Azure Blob storage.Get-VBRAzureBlobContainerReturns Azure Blob containers.Get-VBRAzureBlobFolderReturns Microsoft Azure Blob folders.