I understand there are System variable, user defined variable and environment variable. And the scope of the variable could be
modified during the runtime unlike Parameters. But Global Parameters can be set it from the parameters tab within Manage tab, but for Global variable as per below documentation it needs to be defined at YAML
In the YAML file, you can set a variable at various scopes:
• At the root level, to make it available to all jobs in the pipeline.
• At the stage level, to make it available only to a specific stage.
• At the job level, to make it available only to a specific job.
When a variable is defined at the top of a YAML, it will be available to all jobs and stages in the pipeline and is a global variable. Global
variables defined in a YAML are not visible in the pipeline settings UI.
Variables at the job level override variables at the root and stage level. Variables at the stage level override variables at the root level."
Is there anyway or workaround that, we could explicitly define Global variable in ADF and what actually is the use case for this?
Appreciate your inputs a lot. Thank you.