title: Start service worker role using management rest api
body: <p>I am trying to stop / start an Azure Worker role using the Windows scheduler. The action url I used is as follows: <code>https://management.core.windows.net/&lt;subscription-id&gt;/services/hostedservices/&lt;cloudservice-name&gt;/deploymentslots/&lt;deployment-slot&gt;/</code>. It is secured using a certificate. The response is the following error.</p>
  
  <blockquote>
    <p>Http Action - Response from host 'management.core.windows.net':
    'NotFound' Response Headers: x-ms-servedbyregion: ussouth3
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    x-ms-request-id: e1f235c155cf6a00a904a527bc22c77f Cache-Control:
    no-cache Date: Fri, 15 Jan 2016 19:55:02 GMT Server: 1.0.6198.304
    (rd_rdfe_stable.160106-1801) Microsoft-HTTPAPI/2.0 Body: <Code>ResourceNotFound</Code>The
    resource service name hostedservices is not
    supported.</p>
  </blockquote>
  
  <p>I followed the instructions from here: <a href="https://msdn.microsoft.com/en-us/library/azure/ee460808.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/azure/ee460808.aspx</a>
  The raw POST looks like this: POST <a href="https://management.core.windows.net/9974e512-xxxx-xxxx-xxxx-xxxxxxxxb846a/services/hostedservices/sblqueueprocessorservice/deployments/c2cdxxxxxxxxxxxxxxxxxxxxxxxx6e32/" rel="nofollow">https://management.core.windows.net/9974e512-xxxx-xxxx-xxxx-xxxxxxxxb846a/services/hostedservices/sblqueueprocessorservice/deployments/c2cdxxxxxxxxxxxxxxxxxxxxxxxx6e32/</a> HTTP/1.1
  x-ms-version: 2009-10-01
  Content-Type: application/xml
  Host: management.core.windows.net
  Content-Length: 173</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;UpdateDeploymentStatus xmlns="http://schemas.microsoft.com/windowsazure"&gt;
  &lt;Status&gt;Suspended&lt;/Status&gt;
  &lt;/UpdateDeploymentStatus&gt;
  </code></pre>
  
  <p>In addition, the Get Deployment API call works.</p>