Get-SCACAzureHostedService

Applies To: System Center 2012 - App Controller

Get-SCACAzureHostedService

Gets the hosted services on a specified Windows Azure cloud.

Syntax

Parameter Set: __AllParameterSets
Get-SCACAzureHostedService [-Cloud] <ACAzureSubscriptionCloud> [-ACServer <ACServer> ] [ <CommonParameters>]

Detailed Description

The Get-SCACAzureHostedService cmdlet gets the hosted services on a specified Windows Azure cloud.

Parameters

-ACServer<ACServer>

Specifies an App Controller server object. To retrieve an App Controller server object, use the Get-SCACServer cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Cloud<ACAzureSubscriptionCloud>

Specifies a Windows Azure subscription cloud object.

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 --------------------------

Description

-----------

The first command gets the cloud system object named CloudSystem01 and stores the object in the $CloudSystem variable.

The second command gets the cloud object for the cloud system stored in $CloudSystem and stores the cloud object in the $Cloud variable.

The last command gets all Windows Azure hosted services for the cloud stored in $Cloud and displays information about the Windows Azure hosted services to the user.

PS C:\> $CloudSystem = Get-SCACCloudSystem -Name "CloudSystem01"
PS C:\> $Cloud = Get-SCACCloud -CloudSystem $CloudSystem
PS C:\> Get-SCACAzureHostedService -Cloud $Cloud