I'm trying to replace my json param files with new bicepparam files, but running the script in DevOps, It seems like a ' is added to the beginning of the params, making deployment fail with the following message:
error: unrecognized template parameter 'using '../main.bicep'2023-06-15T13:20:37.9254375Z 2023-06-15T13:20:37.9254901Z param env '. Allowed parameters: env, xxx and xxx.
The same command works locally on my mac and i just tried it on a windows VM, and it works there as well.
The command I'm running throught the AZ CLI v2 task in Azure Dev Ops from a .sh file is:
az deployment group create --resource-group rg-xxx-$ENV --name xxxx-infra-$BUILD -f _xxxx-infra/main.bicep --parameters @_xxxx-infra/parameters/$ENV.bicepparam
$ENV=dev and $BUILD should not be important.
Does anyone have any ideas on why this is hapening or what is hapening?