Set-VBRAzureContainer
Short Description
Modifies a scope of Azure VMs, Azure tags or Azure Availability Zone for a protection group.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRAzureContainer -Container <VBRAzureContainer> [-Subscription <VBRAzureSubscription>] [-Location <VBRAzureLocation>] [-Entity <Object[]>] [-ExcludeEntities] [-ExcludedEntity <Object[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies a scope of Azure VMs, Azure tags or Azure Availability Zone for a protection group.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Container |
Specifies a scope of the following entities that you want to modify:
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Entity |
Specifies an array of the following entities that the cmdlet till add to a scope of a protection group:
Accepts the
|
|
False |
Named |
True (ByPropertyName, ByValue) |
|
ExcludedEntity |
Specifies an array of the following entities that the cmdlet will exclude from a scope of a protection group:
Accepts the
|
|
False |
Named |
True (ByPropertyName, ByValue) |
|
ExcludeEntities |
Specifies an array of the following entities that the cmdlet will exclude from a scope of a protection group:
|
|
False |
Named |
True (ByPropertyName, ByValue) |
|
Location |
Specifies Microsoft Azure region.
Accepts the |
False |
Named |
True (ByPropertyName, ByValue) |
|
|
Subscription |
Specifies subscriptions associated with a Microsoft Azure account.
Accepts the |
False |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Modifying Scope of Azure Entities for Protection Group
This example shows how to modify the scope of Azure entities. The cmdlet will include Azure VMs into scope instead of Azure Availability Zone.
|
$account = Get-VBRAzureAccount -Type ResourceManager -Name "AzureRM@tech.com" $subscription = Get-VBRAzureSubscription -Account $account $location = Get-VBRAzureLocation -Subscription $subscription $scope = New-VBRAzureContainer -Subscription $subscription -Location $location -Entity $location $VMs = Get-VBRAzureVM -Subscription $subscription -Location $location $VMScope = Set-VBRAzureContainer -Container $scope -Entity $VMs |
Perform the following steps:
- Define the Azure Availability Zone protection scope:
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify theTypeand theNameparameter values. Save the result to the$accountvariable. - Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the$accountvariable 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 as theSubscriptionparameter value. Save the result to the$locationvariable. - Run the
New-VBRAzureContainerDefines a scope of Azure VMs, Azure tags or Azure Availability Zone for a protection group. cmdlet. Specify theSubscription,LocationandEntityparameter values. Save the result to the$scopevariable.
- Run the
- Run the
Get-VBRAzureVMReturns Azure VMs. cmdlet. Set the$subscriptionvariable as theSubscriptionparameter value. Set the$locationvariable as theLocationparameter value. Save the result to the$VMsvariable. - Run the
Set-VBRAzureContainercmdlet. Set the$scopevariable as theContainerparameter value. Set the$VMsvariable as theEntityparameter value. Save the result to the$VMScopevariable.
Related Commands
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication.Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription.New-VBRAzureContainerDefines a scope of Azure VMs, Azure tags or Azure Availability Zone for a protection group.Get-VBRAzureVMReturns Azure VMs.