Add-VBRAzureBlobRepository

In this article

    Short Description

    Adds Azure Blob object storage repository to Veeam Backup & Replication.

    Platform: VMware, Hyper-V

    Product Edition:  Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    Add-VBRAzureBlobRepository -AzureBlobFolder <VBRAzureBlobFolder> -Connection <VBRAzureBlobConnection> [-Name <string>] [-Description <string>] [-EnableSizeLimit] [-SizeLimit <int>]  [<CommonParameters>]

    Detailed Description

    This cmdlet adds Azure Blob object storage repository to Veeam Backup & Replication.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    AzureBlobFolder

    Specifies an Azure Blob folder. The cmdlet will move the backup files to the specified folder.

    Accepts the VBRAzureBlobFolder type.

    True

    Named

    True (ByValue)

    Connection

    Specifies an active session with Azure Blob storage that you want to add as the backup repository.

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

    True

    Named

    False

    Name

    Specifies a name of an object storage. The cmdlet will add Azure Blob storage to Veeam Backup & Replication with this name.

    False

    Named

    False

    Description

    Specifies a description of Azure Blob storage. The cmdlet will add Azure Blob storage to Veeam Backup & Replication with this description.

    False

    Named

    False

    EnableSizeLimit

    Indicates that the cmdlet will enable size limits for an Azure Blob storage that you want to add as a backup repository.

    Use the SizeLimit parameter to specify the size limits.

    False

    Named

    False

    SizeLimit

    For the EnableSizeLimit parameter.

    Specifies size limits in GB for data blocks that you want to store in Azure Blob storage added as an object storage repository.

    Permitted value: 1024 - 1073741824.

    Default: 10240.

    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.

    Return Type

    This cmdlet returns the VBRAzureBlobRepository object that contains settings of Azure Blob object storage repository.

    Examples

    Adding Azure Blob Storage as Object Storage Repository

    This example shows how to add an Azure Blob storage as an object storage repository to backup infrastructure.

    $account = Get-VBRAzureBlobAccount -Name "Azure Blob"

    $connect = Connect-VBRAzureBlobService -Account $account -RegionType Global -ServiceType CapacityTier

    $container = Get-VBRAzureBlobContainer -Connection $connect

    $folder = Get-VBRAzureBlobFolder -Container $container -Connection $connect

    Add-VBRAzureBlobRepository -AzureBlobFolder $folder[3] -Connection $connect

    Perform the following steps:

    1. Run the Get-VBRAzureBlobAccount cmdlet. Specify the Name parameter value. Save the result to the $account variable.
    2. Run the Connect-VBRAzureBlobService cmdlet. Specify the Account, RegionType and ServiceType parameter values. Save the result to the $connect variable.
    3. Run the Get-VBRAzureBlobContainer cmdlet. Specify the Connection parameter value. Save the result to the $container variable.
    4. Run the Get-VBRAzureBlobFolder cmdlet. Specify the Container and Connection parameter values. Save the result to the $folder variable.

    The Get-VBRAzureBlobFolder cmdlet will return an array of folders. Mind the ordinal number of the necessary folders (in our example, it is the fourth restore point in the array).

    1. Run the Get-VBRAzureBlobAccount cmdlet. Set the $folder variable as the AzureBlobFolder parameter value. Set the $connect variable as the Connection parameter value.

    Related Commands