Add-VBRAzureArchiveRepository
Short Description
Adds Azure Archive repository to the backup infrastructure.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRAzureArchiveRepository -Connection <VBRAzureBlobConnection> -AzureBlobFolder <VBRAzureBlobFolder> [-EnableBackupImmutability] [-ImmutabilityMode <VBRRepositoryImmutabilityMode>] [-ImmutabilityPeriod <Int32>] [-AzureProxySpec <VBRAzureComputeProxyAppliance>] [-Name <String>] [-Description <String>] [-UseInstantRetrieval] [-EnableReadOnlyMode] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet adds Azure Archive repository to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AzureBlobFolder |
Specifies an Azure Blob folder. Veeam Backup & Replication will move backup files into this folder.
Accepts the |
True |
Named |
False |
|
|
AzureProxySpec |
Specifies an archiver appliance that transfers data from Azure Blob storage to Azure Archive Storage.
Accepts the |
False |
Named |
False |
|
|
Connection |
Specifies an active session with an Azure Archive repository that you want to add to the backup infrastructure.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Description |
Specifies a description of an Azure Archive repository. The cmdlet will add an archive repository with this description. |
|
False |
Named |
False |
|
EnableBackupImmutability |
Defines that the cmdlet will enable the immutability option.
Default: |
|
False |
Named |
False |
|
EnableReadOnlyMode |
Defines that the cmdlet will add the object storage repository in the read-only mode. If you enable this option, Veeam Backup & Replication will not write or modify data in the object storage repository. You can use the object storage repository for restore operations only.
Default: |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add an object storage repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
ImmutabilityMode |
Specifies the immutability retention period:
|
|
False |
Named |
False |
|
ImmutabilityPeriod |
For the Defines the immutability period in days.
Default:
Maximum: |
|
False |
Named |
False |
|
Name |
Specifies a name of an Azure Archive repository. The cmdlet will add an archive repository with this name. |
|
False |
Named |
False |
|
UseInstantRetrieval |
Defines that the cmdlet will create a repository where data blocks are marked with the cool access tier.
Note: If you do not provide the
Default: |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
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" $subscriptaccount = Get-VBRAzureAccount $subscription = Get-VBRAzureSubscription -Account $subscriptaccount $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:
- Specify Azure connection settings:
- Run the
Get-VBRAzureBlobAccountReturns Microsoft Azure Blob credentials records. cmdlet. Specify theNameparameter value. 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
- Specify object storage settings:
- 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. Specify theNameparameter value. Save the result to the$foldervariable.
- Run the
- Define the Azure proxy settings:
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Save the result to the$subscriptaccountvariable. - Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the$subscriptaccountvariable as theAccountparameter value. Save the result to the$subscriptionvariable. - Run the
Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet. Set the$subscriptionvariable theSubscriptionparameter value. Save the result to the$locationvariable. - Run the
Get-VBRAzureVMSizeReturns Microsoft Azure VM configuration options available for a subscription. cmdlet. Set the$subscriptionvariable as theSubscriptionparameter value. Set the$locationvariable as theLocationparameter value. Save the result to the$vmsizevariable. - Run the
Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription. cmdlet. Set the$subscriptionvariable as theSubscriptionparameter value. Specify theNameparameter value. Save the result to the$networkvariable. - Run the
Get-VBRAzureVirtualNetworkSubnetReturns Microsoft Azure virtual network subnets available for a subscription. cmdlet. Set the$networkvariable as theNetworkparameter value. Specify theNameparameter values. Save the result to the$subnetvariable. - Run the
Get-VBRAzureResourceGroupReturns Microsoft Azure resource groups available for a subscription. cmdlet. Set the $subscription variable as the Subscription parameter value. Specify theNameparameter value. Save the result to the$rgvariable. - Run the
New-VBRAzureComputeProxyApplianceDefines proxy appliance settings for adding Azure Archive repository. cmdlet. Set the$vmsizevariable as theVMSizeparameter value. Set the$networkvariable as theNetworkparameter value. Set the$subnetvariable as theSubnetparameter value. Set the$rgvariable as theResourceGroupparameter value. Specify theRedirectorPortparameter value. Save the result to the$proxyvariable.
- Run the
- Run the
Add-VBRAzureArchiveRepositorycmdlet. Specify the following settings:- Set the
$connectionvariable as theConnectionparameter value. - Set the
$foldervariable as theAzureBlobFolderparameter value. - Set the
$proxyvariable as theAzureProxySpecparameter value. - Specify the
Nameparameter value.
- Set 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.Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription.Get-VBRAzureVMSizeReturns Microsoft Azure VM configuration options available for a subscription.Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription.Get-VBRAzureVirtualNetworkSubnetReturns Microsoft Azure virtual network subnets available for a subscription.Get-VBRAzureResourceGroupReturns Microsoft Azure resource groups available for a subscription.New-VBRAzureComputeProxyApplianceDefines proxy appliance settings for adding Azure Archive repository.