This is an archive version of the document. To get the most up-to-date information, see the current version.

Add-VBRAzureArchiveRepository

Short Description

Adds Azure archive repository to the backup infrastructure.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Add-VBRAzureArchiveRepository -Connection <VBRAzureBlobConnection> -AzureBlobFolder <VBRAzureBlobFolder> -AzureProxySpec <VBRAzureComputeProxyAppliance> [-Name <string>] [-Description <string>] [<CommonParameters>]

Detailed Description

This cmdlet adds Azure archive repository to the backup infrastructure.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Connection

Specifies an active session with an Azure archive repository that you want to add to the backup infrastructure.

Accepts the VBRAzureBlobConnection object. To create this object, run the Connect-VBRAzureBlobService cmdlet and set the ArchiveTier property as the ServiceType parameter value.

True

Named

True

AzureBlobFolder

Specifies an Azure Blob folder. Veeam Backup & Replication will move backup files into this folder.

Accepts the VBRAzureBlobFolder object. To create this object, run the New-VBRAzureBlobFolder cmdlet.

True

Named

False

AzureProxySpec

Specifies a proxy appliance for transferring the data.

Accepts the VBRAzureComputeProxyAppliance object. To create this object, run the New-VBRAzureComputeProxyAppliance cmdlet.

True

Named

False

Name

Specifies a name of an Azure archive repository. The cmdlet will add an archive repository with this name.

String

False

Named

False

Description

Specifies a description of an Azure archive repository. The cmdlet will add an archive repository with this description.

String

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

The cmdlet returns the VBRAzureArchiveRepository object that defines the Azure archive repository settings.

Examples

Adding Azure Archive Repository

This example shows how to add the Azure archive repository to the backup infrastructure.

$account = Get-VBRAzureBlobAccount -Name "Azure_Blob"

$connection = Connect-VBRAzureBlobService -Account $account -RegionType Global -ServiceType ArchiveTier

$container = Get-VBRAzureBlobContainer -Connection $connection -Name "container01"

$folder = Get-VBRAzureBlobFolder -Container $container -Connection $connection -Name "folder02"

$subscription = Get-VBRAzureSubscription -Account $account

$location = Get-VBRAzureLocation -Subscription $subscription

$vmsize = Get-VBRAzureVMSize -Subscription $subscription -Location $location

$network = Get-VBRAzureVirtualNetwork -Subscription $subscription -Name "VeeamInternalNetwork"

$subnet = Get-VBRAzureVirtualNetworkSubnet -Network $network -Name "VeeamInternalSubnet"

$rg = Get-VBRAzureResourceGroup -Subscription $subscription -Name "VeeamResourceGroup"

$proxy = New-VBRAzureComputeProxyAppliance -VMSize $vmsize -Network $network -Subnet $subnet -ResourceGroup $rg -RedirectorPort 443

Add-VBRAzureArchiveRepository -Connection $connection -AzureBlobFolder $folder -AzureProxySpec $proxy -Name "MyAzureArchive"

Perform the following steps:

  1. Specify Azure connection settings:
  1. Run the Get-VBRAzureBlobAccount cmdlet. Specify the Name parameter value. Save the result to the $account variable.
  2. Run the Connect-VBRAmazonS3Service cmdlet. Specify the Account, RegionType and ServiceType parameter values. Save the result to the $connection variable.
  1. Specify object storage settings:
  1. Run the Get-VBRAzureBlobContainer cmdlet. Specify the Name and Connection parameter values. Save the result to the $container variable.
  2. Run the Get-VBRAzureBlobFolder cmdlet. Specify the Name, Container and Connection parameter values. Save the result to the $folder variable.
  1. Define the Azure proxy settings:
  1. Run the Get-VBRAzureSubscription cmdlet. Specify the Account parameter value. Save the result to the $subscription variable.
  2. Run the Get-VBRAzureLocation cmdlet. Specify the Subscription parameter value. Save the result to the $location variable.
  3. Run the Get-VBRAzureVMSize cmdlet. Specify the Subscription and Location parameter values. Save the result to the $vmsize variable.
  4. Run the Get-VBRAzureVirtualNetwork cmdlet. Specify the Name and Subscription parameter values. Save the result to the $network variable.
  5. Run the Get-VBRAzureVirtualNetworkSubnet cmdlet. Specify the Name and Network parameter values. Save the result to the $subnet variable.
  6. Run the Get-VBRAzureResourceGroup cmdlet. Specify the Name and Subscription parameter values. Save the result to the $rg variable.
  7. Run the New-VBRAzureComputeProxyAppliance cmdlet. Specify the Vmsize, Network, Subnet, ResourceGroup and RedirectorPort parameter values. Save the result to the $proxy variable.
  1. Run the Add-VBRAzureArchiveRepository cmdlet. Specify the following settings:
  • Set the $connection variable as the Connection parameter value.
  • Set the $folder variable as the AzureBlobFolder parameter value.
  • Set the $proxy variable as the AzureProxySpec parameter value.
  • Specify the Name parameter value.
  • Specify the Description parameter value.

Related Commands