Get-VBOAzureLocation

Short Description

Returns a Microsoft Azure region.

Syntax

Get-VBOAzureLocation -Subscription <VBOAzureSubscription> [-Name <string>]  [<CommonParameters>]

Detailed Description

This cmdlet returns the VBOAzureLocation object.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

Subscription

Specifies a subscription associated with a user account that will be used to access Azure Blob storage.

Accepts the VBOAzureSubscription object.

To get this object, run the Get-VBOAzureSubscription cmdlet.

True

Named

True (ByValue)

False

Name

Specifies a Microsoft Azure region name. The cmdlet will return a Microsoft Azure region with this name.

String

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBOAzureLocation object.

Examples

Get-VBOAzureLocationExample 1. Getting Azure Location

This example shows how to get the Microsoft Azure region.

$azureacc = Get-VBOAzureServiceAccount -Id f8e5ac3d-d883-4dd8-8de3-a8f315fb6ae2

$subscription = Get-VBOAzureSubscription -ServiceAccount $azureacc -Id "06b7354e-518f-4a10-b4c1-98f49d743012"

Get-VBOAzureLocation -Subscription $subscription -Name westeurope

Perform the following steps:

  1. Run the Get-VBOAzureServiceAccount cmdlet. Specify the Id parameter value. Save the result to the $azureacc variable.
  2. Run the Get-VBOAzureSubscription cmdlet. Set the $azureacc variable as the ServiceAccount parameter value. Specify the Id parameter value. Save the result to the $subscription variable.
  3. Run the Get-VBOAzureLocation cmdlet. Specify the $subscription variable as the Subscription parameter value. Specify the Name parameter value.

Related Commands