Stop-AzureService

Stops the current hosted service.

Syntax

Stop-AzureService [[-ServiceName] <String>] [[-Slot] <String>] [-PassThru] [-Profile <AzureSMProfile>]
 [<CommonParameters>]

Description

powershell_prelim

The Stop-AzureService cmdlet stops the current hosted service in the specified slot in Windows Azure.
If no slot is specified, the cmdlet stops the service in the Production slot.

Examples

1:

PS C:\>

Parameters

-ServiceName

Specifies the name of the hosted service to stop.
If no name is specified, the cmdlet stops the current hosted service.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)

-Slot

Specifies the slot where the service is hosted, either Staging or Production.
If no slot is specified, Production is assumed.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)

-PassThru

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False

-Profile

In-memory profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False