In my resource group I am trying to turn on auto-tuning via our ARM Template using this bit of JSON. What we'd like to know is, is if that restriction on PUT is from Org Policy and not just the fact that Azure(MS) does not allow us to turn on that functionality using an ARM Template.
When this is ran we are getting the following error:
{
"code":"MethodNotAllowed",
"message":"The HTTP method 'PUT' is not supported on the resource."
}
I am trying to turn on auto-tuning via our ARM Template
{
"type": "Microsoft.Sql/servers/databases/automaticTuning",
"apiVersion": "2020-11-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers/databases', parameters('sqlServerName'), parameters('dbName'))]"
],
"name": "[concat(parameters('sqlServerName'), '/', parameters('dbName'), '/current')]",
"properties": {
"options": {
"ForceLastGoodPlan": {
"desiredState": "[parameters('forceLastGoodPlanState')]"
},
"CreateIndex": {
"desiredState": "[parameters('createIndexState')]"
},
"DropIndex": {
"desiredState": "[parameters('dropIndexState')]"
}
}
}
}