Delete Autoscale Settings

 

Updated: July 10, 2015

The Delete Autoscale Settings operation can be used to remove automatic scaling settings from deployments of Cloud Services, Virtual Machines, Websites, and Mobile Services.

System_CAPS_noteNote

You can turn off automatic scaling without deleting settings by using Update Autoscale Settings and assigning the value of the Enable element to false.

The Delete Autoscale Settings request may be specified as follows. Replace <subscription-id> with the subscription ID.

Method

Request URI

DELETE

https://management.core.windows.net/<subscription-id>/services/monitoring/autoscalesettings

You must make sure that the request that is made to the management service is secure. For additional details, see Authenticating Service Management Requests.

The following table lists the parameter to use for a cloud service that has web roles or worker roles deployed to it. Replace <cloudservice> with the name of the cloud service, <deployment-slot> with staging or production, and <role> with the name of the role. The parameter is case-sensitive.

URI Parameter

Description

resourceId=/hostedservices/<cloudservice>/deploymentslots/<deployment-slot>/roles/<role>

Required. Specifies that the automatic scaling settings should be removed from a role in the production or staging deployment environments for the specified cloud service. For more information about finding the names of cloud services in your subscription, see List Hosted Services. For more information about finding role names, see Get Deployment.

The following table lists the parameter to use for a cloud service that has Virtual Machines deployed to it. Replace <cloudservice> with the name of the cloud service and <availability-set> with the name of the availability set in which the Virtual Machines are a member.

URI Parameter

Description

resourceId=/virtualmachines/<cloudservice>/availabilitySets/<availability-set>

Required. Specifies that the automatic scaling settings should be removed from an availability set of Virtual Machines. For more information about finding the name of an availability set in which a Virtual Machine is a member, see Get Deployment.

The following table lists the parameter to use for Websites. Replace <webspace> with the name of the webspace and <serverfarm> with the name of the server farm in that webspace.

URI Parameter

Description

resourceId=/webspaces/<webspace>/serverFarms/<serverfarm>

Required. Specifies that the automatic scaling settings should be removed from a server farm in a webspace. For more information about finding the names of webspaces, see List Webspaces. For more information about finding the names of server farms, see Create, Manage, or Delete a Server Farm.

The following table lists the parameter to use for Mobile Services. Replace <mobileservice> with the name of the Mobile Service.

URI Parameter

Description

resourceId=/mobileservices/<mobileservice>

Required. Specifies that the automatic scaling settings should be removed from a Mobile Service.

The following table describes the request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header should be set to 2013-10-01 or higher. For more information about versioning headers, see Service Management Versioning.

The response includes an HTTP status code, a set of response headers, and a response body.

A successful operation returns status code 200 (OK). For information about status codes, see Service Management Status and Error Codes.

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header

Description

x-ms-request-id

A value that uniquely identifies a request made against the management service.

You can also use the classic portal to delete autoscale settings from your application. For more information, see How to Scale an Application.

Show: