You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that [resourceId('[resourceGroup().name]', 'Microsoft.Resources/deployments', '[concat(resourceGroup().name,'-deployment-1115')]')]
Should actually be [resourceId(resourceGroup().name, 'Microsoft.Resources/deployments', concat(resourceGroup().name,'-deployment-1115'))]
I haven't shown the full JSON for the ARM template but the deployment with the problem contains a hostname binding deployment-1116 and deployment-1115 contains the certificate.
To reproduce it exactly you need to make 2 new RG's dns_test & mw_test as well as a DNS zone farmer.com in the dns_test RG.
openFarmeropenFarmer.BuildersletwebAppConfig=
webApp {
name $"test"
sku Farmer.WebApp.Sku.S1
custom_domain "test.farmer.com"}letdnsCname=
cnameRecord {
link_to_unmanaged_dns_zone (Farmer.Arm.Dns.zones.resourceId "farmer.com")
name "test"
ttl 3600
cname $"famertest.azurewebsites.net"}letclientArmDeployment=
resourceGroup {
name "mw_test"
location Location.CentralUS
add_resources [ webAppConfig ]}letdnsDeployment=
resourceGroup {
name "dns_test"
location Location.CentralUS
add_resource dnsCname
}
arm {
add_resources [ clientArmDeployment
dnsDeployment ]}|> Writer.quickWrite "abc123json"
Then run the following PowerShell command New-AzSubscriptionDeployment -TemplateFile ./abc123json.json -Location westeurope
The text was updated successfully, but these errors were encountered:
Copied from comments on #846
It appears that in the ARM template the generated dependsOn resource ID is invalid when using web app certificates.
I believe that
[resourceId('[resourceGroup().name]', 'Microsoft.Resources/deployments', '[concat(resourceGroup().name,'-deployment-1115')]')]
Should actually be
[resourceId(resourceGroup().name, 'Microsoft.Resources/deployments', concat(resourceGroup().name,'-deployment-1115'))]
I haven't shown the full JSON for the ARM template but the deployment with the problem contains a hostname binding deployment-1116 and deployment-1115 contains the certificate.
To reproduce it exactly you need to make 2 new RG's
dns_test
&mw_test
as well as a DNS zonefarmer.com
in thedns_test
RG.Then run the following PowerShell command
New-AzSubscriptionDeployment -TemplateFile ./abc123json.json -Location westeurope
The text was updated successfully, but these errors were encountered: