VMs and REST RRS feed

  • Question

  • Hello,

    I'm attempting to use the REST API in order to manage virtual machines. After a LOT of work, I was able to get REST to work with pretty much every other thing I needed to do except this core functionality.

    I've now spent a few days straight trying to get this "Create Virtual Machine Deployment" API to work, to no avail. I've stripped my request body to the following:

    <Deployment xmlns="" xmlns:i="">
        <Label><!--from c#:-->Base64String(System.Text.Encoding.UTF8.GetBytes("myascitestdeployment_label"))</Label>

    This request succeeds, but when I get the operation status, I see...

    <Operation xmlns="" xmlns:i="">
        <Message>The server encountered an internal error. Please retry the request.</Message>

    So, it fails... and I don't get why. I read and re-read these docs (namely, and it seems that I've stripped this down to the bare-minimum in terms of requirements. I have all the "Required" fields and they all seem to be in the correct format. What am I doing wrong?

    As a secondary question, when I go to the preview portal, I see "Hosted Services" (which is what this REST API manages) and I also see "Virtual Machines." Is there a way, via REST, to start a VM in THAT environment, instead of the "Hosted Services" environment (Production / Staging)? It would seem that the "Create VM Deployment," "Add Role," "Update Role," etc APIs deal SPECIFICALLY with "Hosted Services," NOT with the "basic" virtual machine environment I see above that in the portal.


    Tuesday, August 28, 2012 5:51 PM


All replies