Navigate to Azure Pipelines -> Library -> Select your Variable Group -> Security and check if you are the part of Administrator role.
Verify if you have pipeline permissions by clicking on Pipeline Permissions
And ensure that the variable group is correctly referenced in your YAML file.
variables:
- group: <MyVariableGroup> # mention your variable group name
You can mention this variables section above the steps section in yaml file as shown in the screenshot.
Additional References:
Hope this helps!
Please Let me know if you have any queries.
If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.