Get-SCACAzureServiceDeployment

Get-SCACAzureServiceDeployment

Gets a specified Windows Azure service deployment.

Syntax

Parameter Set: Cloud
Get-SCACAzureServiceDeployment [-Cloud] <ACCloud> [ <CommonParameters>]

Parameter Set: HostedService
Get-SCACAzureServiceDeployment [-HostedService] <ACAzureHostedService> [[-DeploymentSlot] <String> ] [ <CommonParameters>]

Detailed Description

The Get-SCACAzureServiceDeployment cmdlet gets a Windows Azure service deployment.

Parameters

-Cloud<ACCloud>

Specifies a cloud object. To retrieve a cloud object, use the Get-SCACCloud cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-DeploymentSlot<String>

Specifies the name of a deployment slot.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HostedService<ACAzureHostedService>

Specifies a Windows Azure hosted service object. To retrieve a Windows Azure hosted service object, use the Get-SCACAzureHostedService 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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAzureHostedService, System.String

Outputs

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

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAzureServiceDeployment

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 object in the $Cloud variable.

The third command gets all Windows Azure hosted services for the cloud stored in $Cloud and stores the hosted service objects in the $HostedService array.

The last command gets the Windows Azure service deployment for the first hosted service stored in the $HostedService array and displays information about the service deployment to the user.

PS C:\> $CloudSystem = Get-SCACCloudSystem -Name "CloudSystem01.Contoso.com"
PS C:\> $Cloud = Get-SCACCloud -CloudSystem $CloudSystem
PS C:\> $HostedService = @(Get-SCACAzureHostedService -Cloud $Cloud)
PS C:\> Get-SCACAzureServiceDeployment -HostedService $HostedService[0]

Get-SCACCloudSystem

Get-SCACCloud

Get-SCACAzureHostedService