-
Notifications
You must be signed in to change notification settings - Fork 195
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
azd init(easy-init) project name resolution handling for Environment variables with a . #3183
Comments
Greetings--I used This scenario is likely out of scope for any meaningful debugging attempts, but any feedback to aid in my quest is appreciated. The error I received is also perplexing and is what prompted my attempt to capture the full log. I've linted the main.parameters.json file that |
@bmallen1 seems similar |
I was not able to reproduce this on other templates. The output will stop and return an error message when it encounters error. Dash on environment variable name is very likely the cause of this error. Feel free to let us know if removing dash is not working. We will add a log print on error message to print out failed substitute parameters. |
On a project also initialised using Environment variables with a It seems like the automatic project name resolution needs updating to exclude any special characters. |
@weikanglim assuming it is a small fix, adding it to the next milestone. Please feel free to adjust. |
@rudiv thank you for pointing out the issue with the |
* fix issue with azd init template Azure/azure-dev#3183 * add static webapp bicep * refactoring code * adding rest calls to the product * upgrading auth for blazor app * deploying the app manually
I can confirm that the workaround described by @kdcllc works. |
Any update on this? ran into it with azd |
Hi 👋 @brandonh-msft , I'm proposing a fix with #4403 to provide a naming translation: App.Project (directory name) -> app-project (service name) This automatically prevents the issue from occurring due to The motivation behind this proposal is that we have azd commands like |
my only concern is the "invisibility" of this requirement (which harkens back to my aversion to CLIs in the first place, but I digress - that ship has clearly sailed). |
Output from
azd version
azd version 1.5.1 (commit 3856d1e)
Describe the bug
Issuing debug command with a log file parameter to capture terminal output to file. The log file shows incomplete output. The error captured at the end of the log is
ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: resolving bicep parameters file: substituting environment variables inside parameter file: missing closing brace
To Reproduce
azd provision --debug > "log.txt"
Expected behavior
The issued command should capture all terminal output to the specified file.
Environment
Information on your environment:
* IDE and version : Windows 2010, Visual Studio 2022
Additional context
This primary issue is the non-captured log output. I'm trying to use this command to capture details about the error I'm receiving, noted below, "missing closing brace", which is the secondary issue I'm facing. I've linted all of my bicep and parameter.json files, and double checked parameters for a missing brace to no avail.
Full log.txt output:
The text was updated successfully, but these errors were encountered: