Get-SCACAzureServiceDeployment

Applies To: System Center 2012 R2 App Controller

Get-SCACAzureServiceDeployment

Gets a specified Windows Azure service deployment.

Syntax

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

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

Detailed Description

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

Parameters

-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

-Subscription<ACAzureSubscriptionCloud>

Specifies a Windows Azure subscription object. To obtain a Windows Azure subscription object, 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.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: Get the Windows Azure service deployment for a Windows Azure hosted service

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

The second command gets all hosted service objects for the subscription stored in $Subscription, and then stores the hosted service objects in the $HostedService variable.

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:\> $Subscription = Get-SCACAzureSubscription –Name “AzureSubscription01”
PS C:\> $HostedService = Get-SCACAzureHostedService –Subscription $Subscription
PS C:\> Get-SCACAzureServiceDeployment -HostedService $HostedService[0]

Example 2: Get all Windows Azure Service Deployments for a Windows Azure 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 of the Windows Azure service deployments for the subscription stored in $Subscription.

PS C:\> $Subscription = Get-SCACAzureSubscription –Name “AzureSubscription01”
PS C:\> Get-SCACAzureServiceDeployment –Subscription $Subscription

Resume-SCACServiceDeployment

Suspend-SCACServiceDeployment

Get-SCACAzureSubscription

Get-SCACAzureHostedService