This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRAzureCloudService

Short Description

Returns Microsoft Azure cloud services available for a subscription.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Get-VBRAzureCloudService -Subscription <VBRAzureSubscription> [-Name <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns the Microsoft Azure cloud services available for a selected subscription.

You can get the cloud services only for Microsoft Azure Classic accounts.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Subscription

Specifies the subscription. The cmdlet will return cloud services associated with this subscription.

True

Named

True (ByValue,
ByProperty
Name)

False

Name

The array on names of cloud services.

False

Named

False

True

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

VBRAzureCloudService

Example 1

This example shows how to get all cloud services associated with a subscription.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
  3. Run Get-VBRAzureCloudService with the $subscription variable.

$account = Get-VBRAzureAccount -Type Classic -Name "RestoreToAzure@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

Get-VBRAzureCloudService -Subscription $subscription

Example 2

This example shows how to get a cloud service by the cloud service name.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
  3. Run Get-VBRAzureCloudService with the $subscription variable. Specify the name of the cloud service you want to get.

$account = Get-VBRAzureAccount -Type Classic -Name "RestoreToAzure@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

Get-VBRAzureCloudService -Subscription $subscription -Name "VeeamCloudService"

Related Commands

Get-VBRAzureSubscription