I am using below code to get environment variable in Azure Devops pippelines, using ubuntu latest vmimage.
os.environ.get("xyz")
But it's returning None value. When I print os.environ then I can see the xyz key and value, I am not sure what's happening wrong here.
"xyz" is added in the Azure pipeline by using Azure Variable Group.
Python (Linux) 3.8.10 | packaged by conda-forge | (default, May 11 2021, 07:01:05)
Please guide. Thanks