Hi,
I have a few questions about Template Deployments using ARM.
I'm using a template based on the Azure Website + SQL template that comes with the VS Cloud Deployment Project and the ones that can be downloaded as per https://alexandrebrisebois.wordpress.com/2015/02/02/saving-azure-resource-manager-templates-to-json-files-on-disk/.
Firstly, when I run the deployment multiple times I get this error (even though I haven't changed the Location parameter at all):
New-AzureResourceGroupDeployment : 4:10:57 PM - Resource Microsoft.Sql/servers/databases'myservername/mydatabasename' failed with message 'The property 'location' is
read-only and cannot be modified.'
Secondly, the Alerts and Autoscale settings (I ensured the Enabled parameter was true) don't show up in the Portal even though the deployment status was successful. The scale part in the new portal shows up fine, but I do get a loading error for the Alerts consistently.
Thirdly, the example template.json files hardcode the location of the insights stuff (metrics, alerts, autoscale) to East US rather than the same region as the website - does anyone know why that is? Does it matter if I change them to the same region as the site - it deploys successfully according to the script. I tried changing Autoscale to East US to see if that fixed the problem, but it didn't seem to make a difference.