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
{{ message }}
Repository navigation
TemplateAnalyzer: Error parsing Bicep when a parameter isn't specified #65
We have a situation where we use azd to deploy Bicep files, and we intentionally leave one of the parameters unspecified, so that azd prompts for that parameter.
Directory: /home/runner/work/azure-search-openai-demo/azure-search-openai-demo
Error: An exception occurred while analyzing template /home/runner/work/azure-search-openai-demo/azure-search-openai-demo/infra/main.bicep with parameters file /home/runner/work/azure-search-openai-demo/azure-search-openai-demo/infra/main.parameters.json
Exception details:
Microsoft.Azure.Templates.Analyzer.Core.TemplateAnalyzerException: Error while processing template.
---> Azure.Deployments.Templates.Exceptions.TemplateValidationException: The value for the template parameter 'openAiResourceGroupLocation' at line '83' and column '36' is not provided. Please see https://aka.ms/arm-create-parameter-file for usage details.
I tried providing test.parameters.json with it filled in, but that doesn't work due to issue #47
It'd be great if either #47 was fixed or if it didn't error with an unprovided parameter.
Pamela Fox (@pamelafox) - Hi, are you using azure devops pipeline task "MicrosoftSecurityDevOps@1" ?
If yes then I have a query-
How are you passing GDN_TEMPLATEANALYZER_ANALYZEDIRECTORY environment variable for scanning bicep template.
in my case I have a folder which has the bicep template.
I have tried below, but thats not working and scanning the complete repo.
Activity
aakanshaverma1310 commentedon Jul 25, 2023
Pamela Fox (@pamelafox) - Hi, are you using azure devops pipeline task "MicrosoftSecurityDevOps@1" ?
If yes then I have a query-
How are you passing GDN_TEMPLATEANALYZER_ANALYZEDIRECTORY environment variable for scanning bicep template.
in my case I have a folder which has the bicep template.
I have tried below, but thats not working and scanning the complete repo.

If you have any suggestions , pls do share
pamelafox commentedon Aug 4, 2023
I am using a GitHub action workflow, not ADO pipeline, which you can see in my attempted PR: https://github.com/Azure-Samples/azure-search-openai-demo/pull/444/files
DimaBir commentedon Jul 28, 2026
We're cleaning up the issue backlog in this repo, and this one has been inactive for a long time, so we're closing it.
If it's still affecting you, just reopen it or drop a comment — that's enough, and we'll pick it up from there. Nothing else needed from you.
Sorry we left this sitting.