In Azure DevOps, variables are used to store values that can be reused throughout your pipelines, making your pipeline configurations more flexible and easier to manage.
Types of Variables :-
1) Pipeline Variables:
Scope: Defined at the pipeline level and can be used in any stage, job, or step.
Usage: Great for values that are consistent across the entire pipeline, like environment names or configuration settings.
2) Variable Groups
Scope: Defined at the project level and can be used in any pipeline.
Usage: Great for values that are used again and again .