Deployment Name for Add VM Role (REST API)

Answered Deployment Name for Add VM Role (REST API)

  • Monday, September 24, 2012 7:08 AM
     
     

    Hey,

    I am trying to Add a VM Role using the REST API. I created a hosted service and created a deployment through create deployment. But when I try to add a VM Role, I get this error messsage:

    <Code>BadRequest</Code><Message>This operation cannot be performed on a deployment containing web or worker roles.</Message></Error>

    What should I pass in as deployment name? Can someone help me in creating a deployment without web/worker roles?

    Thanks

All Replies

  • Thursday, September 27, 2012 2:21 PM
    Moderator
     
     Answered
    You cannot add new roles to existing deployments (even if it is a web/worker role). It is needed to create new deployments, or remove and recreate the existing deployment. In place upgrade requires the service definition file to remain intact.