WindowsAzure/azure-sdk-tools — Issue #51: Publish-AzureService without any roles tries to publish and returns an error
Author: yavorg
Created: 2011-12-17 00:22:12+00:00
State: open

glennblock: Publish-AzureService should gracefully fail with an eror if no roles are present. It should inform the user to add roles using the commands. Instead of that, this is what happens

```

PS C:\Users\yavorg\Desktop\node\foo> Publish-AzureService -name yavorgfdsfsdfs

Publishing to Windows Azure. This may take several minutes...

4:17:06 PM - Preparing deployment for yavorgfdsfsdfs with Subscription ID: 00977cdb-163f-435f-9c32-39ec8ae61f4d...
4:17:08 PM - Connecting...
4:17:09 PM - Creating...
4:17:10 PM - Created hosted service 'yavorgfdsfsdfs'.
4:17:10 PM - Verifying storage account 'yavorgfdsfsdfs'...
4:19:15 PM - Uploading Package...
Publish-AzureService : Azure service management error

BadRequest
The service's configuration settings are empty. Configuration settings must be specified for at least one role in the service.

At line:1 char:21
+ Publish-AzureService <<<< -name yavorgfdsfsdfs
+ CategoryInfo : CloseError: (:) [Publish-AzureService], AzureServiceManagementException
+ FullyQualifiedErrorId : AzureDeploymentCmdlets.Cmdlet.PublishAzureServiceCommand
```