I have a few variables created in Variable Groups with the following names:
CodeNetworkShare.Dev
CodeNetworkShare.Test
CodeNetworkShare.Prod
I imported this variable group in my Release Definition. Then I tried the following ways to use this in Release definition
I created a local variable in the Release Definition as follows:
Name = CodeNetworkShare1 Value = $(CodeNetworkShare.$(Release.EnvironmentName))
I tried to use it directly in the task using the following expression:
$(CodeNetworkShare.$(Release.EnvironmentName))
Neither of the above approaches worked. Is there any other way I can get this to work? Does VSTS Release Definitions nested variables? If it's not supported at the moment are there plans to support this in the future?