Open rifaterdemsahin opened 6 years ago
This is still not working. I exported a ARM template from the portal and then tried to deploy it and get the same error as with this original sample. How is it possible thats not working since 2 years and nobody fixes anthing? If the sample is wrong: fix it and also fix the export, it creates the same hostNameBindings. If it is correct: fix it.
I am unable to find it necessary information in this template about hostnamebindings https://github.com/Azure/azure-quickstart-templates/blob/master/201-web-app-github-deploy/azuredeploy.json
### Issue Details When I try to deploy an arm template I am getting this error.,
Error in Powershell New-AzureRmResourceGroupDeployment : 17:09:29 - Resource Microsoft.Web/sites/hostNameBindings 'monitorfunctionswivpj9/monitorfunctionswivpj5hlzdq3i9.azurewebsites.net' failed with message '{ "Code": "BadRequest", "Message": "Too many (2) hostnames in the default DNS zone. Limit is 1.", "Target": null, "Details": [ { "Message": "Too many (2) hostnames in the default DNS zone. Limit is 1." }, { "Code": "BadRequest" }, { "ErrorEntity": { "ExtendedCode": "04017", "MessageTemplate": "Too many ({0}) hostnames in the default DNS zone. Limit is {1}.", "Parameters": [ "2", "1" ], "Code": "BadRequest", "Message": "Too many (2) hostnames in the default DNS zone. Limit is 1." } } ], "Innererror": null }'
My resources section
My Variables Section "variables": { "hostnamebindingsforfunctions": "[concat('monitorfunctions',uniqueString(resourceGroup().id),'9','.azurewebsites.net')]", "functionsname": "[concat('monitorfunctions',substring(uniqueString(resourceGroup().id),0,5),'9')]" },
### Repro steps (if necessary, delete otherwise)