I am trying to stop / start an Azure Worker role using the Windows scheduler. The action url I used is as follows: https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deploymentslots/<deployment-slot>/
. It is secured using a certificate. The response is the following error.
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:
ResourceNotFound
The resource service name hostedservices is not supported.
I followed the instructions from here: https://msdn.microsoft.com/en-us/library/azure/ee460808.aspx The raw POST looks like this: POST https://management.core.windows.net/9974e512-xxxx-xxxx-xxxx-xxxxxxxxb846a/services/hostedservices/sblqueueprocessorservice/deployments/c2cdxxxxxxxxxxxxxxxxxxxxxxxx6e32/ HTTP/1.1 x-ms-version: 2009-10-01 Content-Type: application/xml Host: management.core.windows.net Content-Length: 173
<?xml version="1.0" encoding="utf-8"?>
<UpdateDeploymentStatus xmlns="http://schemas.microsoft.com/windowsazure">
<Status>Suspended</Status>
</UpdateDeploymentStatus>
In addition, the Get Deployment API call works.