✅ Can't Deploy .NET Aspire application using azd in Azure DevOps Pipeline
I am having a very frustrating problem deploying my .NET Aspire application system using
However, I still get the same error when the pipeline runs
I even added a step to echo out the contents of the environment variable, and all looks fine with it. I also tried creating the AZDO pipeline using
azd deploy in Azure DevOps. I searched the issues and I tried these steps that I found, but to no avail:- create a pipeline variable called
AZD_INITIAL_ENVIRONMENT_CONFIG - copy the contents of the
.azure/<env_name>/config.jsonfile into it - reference the variable in the YAML, like this:
However, I still get the same error when the pipeline runs
azd deploy:ERROR: failed deploying service 'account-service': failed executing template file: template: manifest template:27:19: executing "manifest template" at <securedParameter "CacheConnection">: error calling securedParameter: parameter CacheConnection not foundI even added a step to echo out the contents of the environment variable, and all looks fine with it. I also tried creating the AZDO pipeline using
azd pipeline config --provider azdo. It created the AZD_INITIAL_ENVIRONMENT_CONFIG variable for me, but I still get the same error . Deploying from the command line works fine btw.