Set-VBRAmazonEC2Container
Short Description
Modifies a scope of Amazon EC2 instances, EC2 tags or AWS datacenters for a protection group.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRAmazonEC2Container -Container <VBRAmazonEC2Container> [-Region <VBRAmazonEC2Region>] [-Entity <Object[]>] [-ExcludeEntities] [-ExcludedEntity <Object[]>] [-AutoAssignIAMRole] [<CommonParameters>] |
Detailed Description
Modifies a scope of Amazon EC2 instances, EC2 tags or AWS datacenters 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 |
|---|---|---|---|---|---|
|
AutoAssignIAMRole |
Defines that the cmdlet will automatically set the IAM role with the AmazonSSMManagedInstanceCore policy to the EC2 instances that you want to back up. If you do not provide this parameter, you will have to set the IAM role manually. |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
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 the following entities that you do not want to add to a protection group:
|
|
False |
Named |
True (ByPropertyName, ByValue) |
|
ExcludeEntities |
Defines that the cmdlet will exclude EC2 instances from a scope of a protection group. |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
Region |
Specifies AWS Regions in which you want to deploy Veeam Agent on cloud machines.
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 AWS Datacenters for Protection Group
This example shows how to modify the scope of AWS datacenters. The cmdlet will change the datacenter from eu-central-1 to eu-north-1.
|
$AWSaccount = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c" $datacenter = Get-VBRAmazonEC2Region -Account $AWSaccount -RegionType Global -Name "eu-central-1" $container = New-VBRAmazonEC2Container -Region $AWSregion -Entity $datacenter $DCNew = Get-VBRAmazonEC2Region -Account $AWSaccount -RegionType Global -Name "eu-north-1" Set-VBRAmazonEC2Container -Container $container -Entity $DCNew |
Perform the following steps:
- Define the AWS datacenter protection scope:
- Run the
Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Specify theIdparameter value. Save the result to the$AWSaccountvariable. - Run the
Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters. cmdlet. Set the$AWSaccountvariable as theAccountparameter value. Set theGlobalvalue as theRegionTypeparameter value. Specify theNameparameter value. Save the result to the$datacentervariable. - Run the
New-VBRAmazonEC2ContainerDefines a scope of Amazon EC2 instances, EC2 tags or AWS datacenters for a protection group. cmdlet. Set the$AWSregionvariable as theRegionparameter value. Set the$datacentervariable as theEntityparameter value. Save the result to the$containervariable.
- Run the
- Run the
Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters. cmdlet. Set the$AWSaccountvariable as theAccountparameter value. Set theGlobalvalue as theRegionTypeparameter value. Specify theNameparameter value. Save the result to the$DCNewvariable. - Run the
Set-VBRAmazonEC2Containercmdlet. Set the$containervariable as theContainerparameter value. Set the$DCNewvariable as theEntityparameter value.
Related Commands
Get-VBRAmazonAccountReturns AWS credentials records.Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters.New-VBRAmazonEC2ContainerDefines a scope of Amazon EC2 instances, EC2 tags or AWS datacenters for a protection group.