Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureDeployment

Remove-AzureDeployment

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Deletes the specified deployment of a Microsoft Azure service.

Syntax

Remove-AzureDeployment [-ServiceName] [-Slot] [-DeleteVHD] [-Force] [<CommonParameters>]

Detailed Description

The Remove-AzureDeployment cmdlet deletes the specified deployment of a Microsoft Azure cloud service. The deployment should be in the suspended state.

Parameters

-ServiceName <String>

Specifies the name of the service whose deployment will be deleted.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <String>

Specifies the deployment environment from which the deployment of the specified Microsoft Azure service will be deleted. Choices are Staging or Production. If no slot is specified, the production environment is assumed.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-DeleteVHD <SwitchParameter>

Specify to remove the deployment and the underlying disk blob(s).

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

ManagementOperationContext

Notes

Examples

-------------------------- Example 1 --------------------------

This command removes the deployment of the Microsoft Azure service "myservice" from the production environment.

PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice"

-------------------------- Example 2 --------------------------

This command removes the deployment of the Microsoft Azure service "myservice" from the production environment, and the underlying VHD(s).

PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice" -DeleteVHD

Get-AzureDeployment
Move-AzureDeployment
New-AzureDeployment
Set-AzureDeployment