Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add trace log message when failing to find Env Var (#13777)
Fixes #13100 If verbose is set to true in bicepconfig.json, bicep now logs the names of all available environment variables when function readEnvironmentVariable fails to find the variable specified. This should hopefully help troubleshoot errors related to this function. Example of output before: ![image](https://github.com/Azure/bicep/assets/5576847/fcdf716d-458e-4915-a07f-68607b5cd0f6) Example of output after: ![image](https://github.com/Azure/bicep/assets/5576847/b5c1b7e3-6209-43ce-ac07-a19acd68ba60) ## Contributing a feature * [x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the Bicep maintainers are good with the design of the feature being implemented * [x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged * [x] I have appropriate test coverage of my new feature ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/13777)
- Loading branch information