Open gihan99 opened 1 year ago
@gihan99 you can check this doc for storing a secret in a variable, then consuming that variable.
@brwilkinson I tried the suggested option to have the secrets linked to the variable group and I got the same error mentioned above. I moved the source files to a new project on Azure DevOps and created a release pipeline. it worked, so clearly some thing is messed up on the old project, what could it be ?
Add a powershell task and list the environment variables to troubleshoot.
dir env:
Keep getting the error below on the DevOps bicep release pipeline while using the bicep file. Error: Error: Command failed: az bicep build --file D:\a\r1\a_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.bicep ERROR: unrecognized arguments: xxxxxxxxxxxxxxxxxxxxxxx.bicep
Steps Tried:
What I have on the release pipeline is an ARM task and I have selected the xxxx.bicep file for the template file, parameters.json file as the Parameters files and I have an override parameter to set a value from a pipeline variable. Below is the yml output of the task I have on the release pipeline