New-VBRAmazonEC2Container

Short Description

Defines a scope of Amazon EC2 instances, EC2 tags or AWS datacenters for a protection group.

Applies to

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

Syntax

New-VBRAmazonEC2Container -Region <VBRAmazonEC2Region> -Entity <Object[]> [-ExcludeEntities] [-ExcludedEntity <Object[]>] [-AutoAssignIAMRole]  [<CommonParameters>]

Detailed Description

This cmdlet defines the VBRAmazonEC2Container object. This object contains a scope of Amazon EC2 instances,  EC2 tags or AWS datacenters.

Use this object to create a protection group with the Add-VBRProtectionGroup cmdlet. After you create a protection group, Veeam Backup & Replication will deploy Veeam Agent on EC2 instances added to the scope of the protection group.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Region

Specifies AWS Regions in which you want to deploy Veeam Agent on cloud machines.

Accepts the VBRAmazonEC2Region object. To create this object, run the Get-VBRAmazonEC2Region cmdlet.

True

Named

True (ByValue, ByPropertyName)

Entity

Specifies an array of the following entities that the cmdlet will add to a scope of a protection group:

  • EC2 instances.
  • EC2 tags.
  • AWS datacenters.

Accepts the Object[] object. To get this object, run the following  cmdlets:

True

Named

True (ByValue, ByPropertyName)

ExcludeEntities

Defines that the cmdlet will exclude the following entities from a scope of a protection group:

  • EC2 instances.
  • EC2 tags.
  • AWS datacenters.

Provide the ExcludedEntity parameter to specify the excluded entities.

SwitchParameter

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:

  • EC2 instances.
  • EC2 tags.
  • AWS datacenters.

Accepts the Object[] object. To get this object, run the following  cmdlets:

False

Named

True (ByValue, ByPropertyName)

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.

SwitchParameter

False

Named

True (ByValue, ByPropertyName)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRAmazonEC2Container

Examples

New-VBRAmazonEC2ContainerExample 1. Defining Scope of Amazon EC2 Instances for Protection Group

New-VBRAmazonEC2ContainerExample 2. Defining Scope of AWS Datacenters for Protection Group

New-VBRAmazonEC2ContainerExample 3. Defining Scope of AWS Tags for Protection Group

Related Commands

Page updated 5/3/2024

Page content applies to build 12.3.1.1139