Get-VBROracleCloudAvailabilityDomain
Short Description
Returns availability domains in Oracle Cloud Infrastructure regions.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBROracleCloudAvailabilityDomain -Region <VBROracleCloudRegion> [-Name <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of availability domains in the specified Oracle Cloud Infrastructure region.
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Name
|
Specifies an array of names of availability domains. The cmdlet will return availability domains with these names.
You can use wildcard characters in the names.
|
String[]
|
False
|
Named
|
False
|
|
Region
|
Specifies the OCI region. The cmdlet will return availability domains in this region.
Accepts the VBROracleCloudRegion object. To get this object, run the Get-VBROracleCloudRegionReturns Oracle Cloud Infrastructure regions that an account is subscribed to. cmdlet.
|
VBROracleCloudRegion
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBROracleCloudAvailabilityDomain object that contains the availability domain settings.
Examples
Example 1. Getting All Availability Domains in Region
|
This example shows how to get all availability domains in the specified Oracle Cloud Infrastructure region.
|
$account = Get-VBROracleCloudAccount -Name "My OCI Account"
$region = Get-VBROracleCloudRegion -Account $account -Name "eu-frankfurt-1"
Get-VBROracleCloudAvailabilityDomain -Region $region |
Perform the following steps:
- Run the
Get-VBROracleCloudAccountReturns Oracle Cloud Infrastructure accounts. cmdlet. Specify the Name parameter value. Save the result to the $account variable.
- Run the
Get-VBROracleCloudRegionReturns Oracle Cloud Infrastructure regions that an account is subscribed to. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save the result to the $region variable.
- Run the
Get-VBROracleCloudAvailabilityDomain cmdlet. Set the $region variable as the Region parameter value.
|
Example 2. Getting Availability Domain by Name
|
This example shows how to get an availability domain by its name.
|
$account = Get-VBROracleCloudAccount -Name "My OCI Account"
$region = Get-VBROracleCloudRegion -Account $account -Name "eu-frankfurt-1"
$domain = Get-VBROracleCloudAvailabilityDomain -Region $region -Name "*AD-1" |
Perform the following steps:
- Run the
Get-VBROracleCloudAccountReturns Oracle Cloud Infrastructure accounts. cmdlet. Specify the Name parameter value. Save the result to the $account variable.
- Run the
Get-VBROracleCloudRegionReturns Oracle Cloud Infrastructure regions that an account is subscribed to. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save the result to the $region variable.
- Run the
Get-VBROracleCloudAvailabilityDomain cmdlet. Specify the following settings:
- Set the
$region variable as the Region parameter value.
- Specify the
Name parameter value.
Save the result to the $domain variable to use it when you run the Start-VBRVMRestoreToOracleCloudStarts a restore session to Oracle Cloud Infrastructure. cmdlet.
|