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

Add-VBRAzureAccount

Short Description

Adds Microsoft Azure accounts to Veeam Backup & Replication.

Applies to

Platform: VMware, Hyper-V

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

Syntax

This cmdlet provides parameter sets that allow you to

  • Add the Microsoft Azure account.

Add-VBRAzureAccount [-Region <VBRAzureRegionType> {Global | China | Government}][-AzureCredentials <CCredentials>]  [<CommonParameters>]

  • Add Microsoft Azure stack account.

Add-VBRAzureAccount -AzureCredentials <CCredentials> -ResourceManagerEndpoint <string>  [<CommonParameters>]

Detailed Description

This cmdlet adds a Microsoft Azure account to the Veeam Backup & Replication managing console and imports information about subscriptions and resources associated with the Microsoft Azure account.

You can add the following types of the accounts:

  • Microsoft Azure account
  • Microsoft Azure stack account

The cmdlet will open a Microsoft Azure wizard. Follow the steps of the wizard to add the account.

Important

Mind the following:

  • This cmdlet does not create Microsoft Azure account. You must set up the Microsoft Azure account beforehand.
  • This cmdlet does not support Microsoft Azure accounts with the Azure Service Manager (ASM, also known as a "classic" type).

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

ResourceManager
Endpoint

To connect to Microsoft Azure stack.

Specifies the path to the Azure Stack resource management endpoint. Veeam Backup & Replication will use this path to connect to Microsoft Azure stack.

True

Named

False

 

Region

Specifies the region type of the Microsoft Azure account. You can select the following types of regions:

  • Global
  • Government
  • China

False

Named

False

 

AzureCredentials

Specifies the credential records. Veeam Backup & Replication will use these credential records to connect to Microsoft Azure.

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

VBRAzureAccount

Example 1

This example shows how to add the Microsoft Azure account into your Veeam Backup & Replication infrastructure.

  1. Run Get-VBRCredentials to get Microsoft Azure credentials records. Save the result to the $creds variable.
  2. Run Add-VBRAzureAccount with the $creds variable. Use the Region parameter to specify the region type.

$creds = Get-VBRCredentials -Name "Microsoft Azure"

Add-VBRAzureAccount -Region Global -AzureCredentials $creds

Example 2

This example shows how to add the Microsoft Azure stack account into your Veeam Backup & Replication infrastructure.

  1. Run Get-VBRCredentials to get Microsoft Azure credentials records. Save the result to the $creds variable.
  2. Run Add-VBRAzureAccount with the $creds variable. Use the ResourceManagerEndpoint parameter to specify the Azure Stack resource management endpoint.

$creds = Get-VBRCredentials -Name "Microsoft Azure Stack"

Add-VBRAzureAccount -ResourceManagerEndpoint "management.local.veeamstack.external" -AzureCredentials $creds

Related Commands

Get-VBRCredentials