essenbee
✅ Can't Deploy .NET Aspire application using azd in Azure DevOps Pipeline
This issue is SOLVED! The problem was that I had run
azd init
and azd pipeline config
in the AppHost folder. As soon as I ran those commands in the root of the solution, and adjusted the pipeline to remove the cd $(Build.SourcesDirectory)/ServiceLayer.AppHost;
lines, it all worked like a charm 🙂30 replies
✅ Can't Deploy .NET Aspire application using azd in Azure DevOps Pipeline
When I run the pipeline, the Provision step fails with the error:
ERROR: initializing provisioning manager: prompting for value: no default response for prompt 'Enter a value for the 'AADB2CClientId' infrastructure parameter:'
However, the pipeline step DEBUG: print AZD_INITIAL_ENVIRONMENT_CONFIG
for debugging printed out the value of the AZD_INITIAL_ENVIRONMENT_CONFIG
and it definitely contains the infrastructure parameters e.g.30 replies
✅ Can't Deploy .NET Aspire application using azd in Azure DevOps Pipeline
From the debugging I've done, it seems to me that
azd provision
and azd deploy
ignore the contents of the env var AZD_INITIAL_ENVIRONMENT_CONFIG
. I have verified that, even when that var is a pipeline secret, it does contain all the values needed. But azd
just says they are not set... Here's a bit more information:30 replies
✅ Can't Deploy .NET Aspire application using azd in Azure DevOps Pipeline
I even got azd to create the pipeline for me, using
azd pipeline config --provider azdo
and that created the variable automatically. That pipeline also fails with the exact same message30 replies