Get-VBRAmazonEC2VM
Short Description
Returns Amazon EC2 instances.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRAmazonEC2VM -Region <VBRAmazonEC2Region> [<CommonParameters>] |
Detailed Description
This cmdlet returns the Amazon EC2 instances.
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 |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Getting all Amazon EC2 Instances Available in Specific AWS Region
This example shows how to get all Amazon EC2 instances available in the Global AWS Region.
|
$account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c" $region = Get-VBRAmazonEC2Region -Account $account -RegionType Global -Name "eu-west-3" $EC2 = Get-VBRAmazonEC2VM -Region $region |
Perform the following steps:
- Run the
Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Specify theIdparameter value. Save the result to the$accountvariable. - Run the
Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters. cmdlet. Set the$accountvariable as theAccountparameter. Set theGlobalvalue as theRegionTypeparameter value. Specify theNameparameter value. Save the result to the$regionvariable. - Run the
Get-VBRAmazonEC2VMcmdlet. Set the$regionvariable as theRegionparameter. Save the result to the$EC2variable.
Related Commands
Get-VBRAmazonAccountReturns AWS credentials records.Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters.