WindowsAzure/azure-sdk-tools — Issue #71: Remove-AzureService: Bad error message when attempting to remove a non-deployed service
Author: yavorg
Created: 2012-01-04 01:59:16+00:00
State: open
Labels: P2

markcowl says: When removing a service that has not been deployed, get the following exception , would be nice to have a clean message that the service could not be found:

11:07:30 AM - Removing service webonly0101...
11:07:30 AM - Removing deployment
11:07:32 AM - Removing service...
11:07:32 AM - Removing service webonly0101
Remove-AzureService : There was no endpoint listening at https://management.cor
e.windows.net/db1ab6f0-4769-4b27-930e-01e2ef9c123c/services/hostedservices/webo
nly0101 that could accept the message. This is often caused by an incorrect add
ress or SOAP action. See InnerException, if present, for more details.
At line:1 char:20
+ Remove-AzureService <<<< -Subscription "Azure SDK sandbox"
+ CategoryInfo : CloseError: (:) [Remove-AzureService], EndpointN
otFoundException
+ FullyQualifiedErrorId : AzureDeploymentCmdlets.Cmdlet.RemoveAzureService
Command