Closed l0010o0001l closed 5 years ago
@l0010o0001l Can you pleae include the request as well from the debug trace - this will help diagnose precisely what is wrong.
Thanks for the head's up @markcowl. Here it is.
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/02f27965-8f6f-4280-a8ab-02eb0bcc1f15/resourcegroups/integrationtest-api-7
4393/providers/microsoft.insights/autoscalesettings/api-74393-sandbox-de-scale-out?api-version=2015-04-01
Headers:
x-ms-client-request-id : b592d1a5-c0e9-4cac-aa01-d7549a7585cb
accept-language : en-US
Body:
{
"properties": {
"profiles": [
{
"name": "-scale-out-profile",
"capacity": {
"minimum": "1",
"maximum": "2",
"default": "1"
},
"rules": [
{
"metricTrigger": {
"metricName": "HTTPQueueLength",
"metricResourceUri":
"/subscriptions/02f27965-8f6f-4280-a8ab-02eb0bcc1f15/resourceGroups/integrationtest-api-74393/providers/Microsoft.We
b/sites/api-74393-sandbox-de",
"timeGrain": "PT1M",
"statistic": "Average",
"timeWindow": "PT10M",
"timeAggregation": "Average",
"operator": "GreaterThan",
"threshold": 100.0
},
"scaleAction": {
"direction": "Increase",
"type": "ChangeCount",
"value": "1",
"cooldown": "PT10M"
}
}
]
}
],
"enabled": true,
"targetResourceUri":
"/subscriptions/02f27965-8f6f-4280-a8ab-02eb0bcc1f15/resourceGroups/integrationtest-api-74393/providers/Microsoft.We
b/serverFarms/api-74393-sandbox-de-plan"
},
"location": "westus2",
"tags": {}
}
Any update on this issue?
Description
I have been attempting to create Autoscale settings via AzureRM and have been only getting 'BadRequest' responses despite valid parameter input. If it helps, I get the same behavior using ARM templates. It is not clear what the problem is, or which metric is unsupported. Thank you for looking into this.
Script/Steps for Reproduction
Module Version
Environment Data
Debug Output