Get-SCACAzureHostedService

Applies To: System Center 2012 R2 App Controller

Get-SCACAzureHostedService

Gets the hosted services for a specified Windows Azure subscription.

Syntax

Parameter Set: Default
Get-SCACAzureHostedService [-Subscription] <ACAzureSubscriptionCloud> [ <CommonParameters>]

Detailed Description

The Get-SCACAzureHostedService cmdlet gets the hosted services for a specified Windows Azure subscription.

Parameters

-Subscription<ACAzureSubscriptionCloud>

Specifies a Windows Azure subscription. To get a Windows Azure subscription, use the Get-SCACAzureSubscription cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAzureSubscriptionCloud

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAzureHostedService

Examples

Example 1: Get all Windows Azure hosted services for a subscription

The first command gets the Windows Azure subscription object named AzureSubscription01 and stores the object in the $Subscription variable.

The second command gets all Windows Azure hosted services for the subscription stored in $Subscription and displays information about the Windows Azure hosted services to the user.

PS C:\> $Subscription = Get-SCACAzureSubscription -Name "AzureSubscription01"
PS C:\> Get-SCACAzureHostedService –Subscription $Subscription

Get-SCACAzureSubscription