Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from "DbDomainName" setting? #1

Open
Janna112358 opened this issue Sep 23, 2024 · 0 comments
Open

error from "DbDomainName" setting? #1

Janna112358 opened this issue Sep 23, 2024 · 0 comments

Comments

@Janna112358
Copy link

Hey!

I think the setting in the web app definition on line 36:
setting "DbDomainName" pgServer.FullyQualifiedDomainName

is causing a problem. It ends up in the template.json as:

"name": "DbDomainName",
"value": "[reference(resourceId('Microsoft.DBforPostgreSQL/servers', 'forest-dbserver-test')).fullyQualifiedDomainName]"

(where my db server is called forest-dbserver-test).

I get the following error:

---> Farmer.FarmerException: ERROR: {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template resource 'Microsoft.Web/sites/forest-web-test' reference to 'Microsoft.DBforPostgreSQL/servers/forest-dbserver-test' requires an API version. Please see https://aka.ms/arm-syntax for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":0,"linePosition":0,"path":""}}]}}

Without the DbDomainName setting, I don't get this error. I also just noticed that the setting for "APPINSIGHTS_INSTRUMENTATIONKEY" which was added automatically, looks very similar but with a version:

"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
 "value": "[reference(resourceId('Microsoft.Insights/components', 'forest-insights-test'), '2014-04-01').InstrumentationKey]"

I'm using the new FlexibleServer model in case that matters :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants