When using an invoke-restmethod environment check, one should be able to dynamically specify a variable name to use in the url suffix and parameters field. for example: $($(Build.Repository.Name).PullRequestID) should resolve to a variable, in the linked variable group, called myRepo.PullRequestID however this syntax doesn’t work.
I can’t find any information on what sort of formatting the url suffix and parameters field supports. Is string concatenation or expressions supported? I couldn't get any documented syntaxes working.
Is there perhaps another approach to achieve a re-useable invoke-restmethod environment check? I would like to have one environment check be able to handle the same kind of check for multiple applications. Azure functions is a possible route but adds a significant level of complexity since we don't have any cloud functions yet.
We are trying to increase our level of automation by automating the creation of a release branch, waiting for the build and deployment to complete(with an environment checks) before merging to master, then waiting for that to complete before auto creating change requests and so on.