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

Wrong string interpolation syntax in cosmosdb example #1982

Closed
jesperkristensen opened this issue Mar 23, 2021 · 1 comment · Fixed by #1983
Closed

Wrong string interpolation syntax in cosmosdb example #1982

jesperkristensen opened this issue Mar 23, 2021 · 1 comment · Fixed by #1983

Comments

@jesperkristensen
Copy link

Deploying https://github.com/Azure/bicep/blob/main/docs/examples/101/cosmosdb-free/main.bicep gives an error saying $ is not a valid character in name.

$(appName) should be replaced with ${appName}.

param appName string = uniqueString(resourceGroup().id)
param accountName string = toLower('cosmos-$(appName)')
param location string = resourceGroup().location
param databaseName string = toLower('db-$(appName)')
@anthony-c-martin
Copy link
Member

Thanks for raising this! I've submitted a fix for it.

@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants