The problem that I faced was that I wanted to pass a JSON to the application deployment task in the deployment task, I used the YAML deployment template.
I stored the JSON variables as part of the pipelines folder.
- The relative path to the JSON file does not work to be passed to the app settings, the absolute JSON path is required.
- Token replacement in the JSON file as it contained variables from the variables group. Added a new task to perform JSON token replacement. The task will perform replacement based on the prefix and suffix chars.
After solving all the issues, the only thing left it to set the application settings using a Azure CLI and remove the ‘AppSettings’ parameter from the deployment task.