To stop a classic service using Azure REST API, you will need to follow these steps:
Authenticate and obtain an Access Token to use Azure REST API.
Send a DELETE request to the following endpoint using the obtained Access Token:
https://management.core.windows.net/{subscription-id}/services/hostedservices/{cloud-service}/deployments/{deployment-name}
Replace {subscription-id}
with your Subscription ID, {cloud-service}
with the name of the cloud service and {deployment-name}
with the name of the deployment.
Content-Type: application/xml
x-ms-version: 2015-04-01
Authorization: Bearer {Access-Token}
Replace {Access-Token}
with the Access Token obtained in Step 1.
<DeleteDeployment xmlns="http://schemas.microsoft.com/windowsazure">
<deleteAllRoles>true</deleteAllRoles>
</DeleteDeployment>
This XML specifies that all roles should be deleted along with the deployment.
If the request is successful, you will receive a 200 OK response indicating that the deployment has been deleted.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-29 11:38:05 +0000
Seen: 10 times
Last updated: Apr 29 '23
What is the method to obtain a count from specific columns while disregarding the rest?
How can I make a div occupy the rest of the height of its parent div using Tailwind CSS?
What does "backend not found" mean in Django Rest Framework?
How can you make a div occupy the rest of the space below a div that has a height that varies?
REST Assured API POST request is causing problems for me, can you help?
What are the possible situations in which microservices can fail?