Found this issue after many many hours of troubleshooting. When using a Global Parameter in an expression and the parameter name has 'hypens' I was unable to debug the pipeline with the following error:
{"code":"BadRequest","message":null,"target":"pipeline//runid/dd8be58c-de84-458c-aace-xxxxxxxxx","details":null,"error":null}
Steps to reproduce:
- Create a Global Parameter with hyphens in its name e.g. 'global-parameter-name'
- Create a pipline, add a variable
- Add 'Set Variable' activity to assign the Global Parameter to that variable with an expression
- Debug the pipeline
Here's the sample pipeline
{
"name": "pipeline1",
"properties": {
"activities": [
{
"name": "Set variable1",
"type": "SetVariable",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"variableName": "localVar",
"value": {
"value": "@pipeline().globalParameters.gbl-parameter-with-hypens",
"type": "Expression"
}
}
}
],
"variables": {
"localVar": {
"type": "String"
}
},
"annotations": []
}
}
Is this a bug? or did I miss something?