Error under Azure Deployment

Hi,

I’m getting two errors:

  1. A 404 “The resource service name hostedservices is not supported” is returned from Azure
  2. The deployment is marked as successful, even though an error occured

I’m trying to deploy a Cloud Service with two roles.

@@@
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: New-AzureDeployment : "An exception occurred when calling the ServiceManagement
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: API. HTTP Status Code: 404. Service Management Error Code: ResourceNotFound. M
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: essage: The resource service name hostedservices is not supported… Operation T
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: racking ID: ."
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: At D:\Octopus\Data\tmp\deployments-774\DeployToAzure.ps1:73 char:5
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: + New-AzureDeployment -Slot $OctopusAzureSlot -Package $OctopusAzurePackage
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: Uri …
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: ~~~
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: + CategoryInfo : CloseError: (:slight_smile: [New-AzureDeployment], ServiceMa
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: nagementClientException
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagem
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR: ent.HostedServices.NewAzureDeploymentCommand
2013-09-11 12:33:09 INFO [Azure Deployment] ERROR:
@@@

Any help would be appreciated.

This was an error on my behalf.

I was using a Octopus variable, but forgot to define the variable. In this case, the variable was used to define the Azure Cloud Service in a Azure deployment step. Azure just gives some strange feedback.

Paul, is it possible to make Octopus throw an error imediatly if using a undefined variable?