Remove-AzureService
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Remove-AzureService
Deletes the specified service from Windows Azure.
Parameter Set: Default
Remove-AzureService [-ServiceName] <String> [ <CommonParameters>]
The Remove-AzureService cmdlet removes a cloud service from your Windows Azure subscription. Before you can delete a service, you must first delete any deployments it has. Attempting to delete a cloud service that has deployments results in an error. You can use the Remove-AzureDeployment cmdlet to delete a cloud service's deployments.
-ServiceName<String>
The name of the Windows Azure service to be removed.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
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).
-------------- Example 1 --------------
This command removes the Windows Azure service named "MyTodo".
C:\PS>Remove-AzureService -ServiceName "MyTodo"
-------------- Example 2 --------------
This command first removes any existing deployments in the specified "MySvc" service, and then removes the service.
C:\PS>Get-AzureDeployment –ServiceName "MySvc" | Remove-AzureDeployment
C:\PS>Remove-AzureService -ServiceName "MySvc"