As far as I can see, quite opposite to Azure DevOps GUI, az cli doesn't support environments when working with pipelines/builds. Neither does REST API, it seems.
I would like to get, as a part of another pipeline, repository version (commit) used by last successful build for a given environment. Is there a programmatically way of doing that?
Releases - Get Release
api: docs.microsoft.com/en-us/rest/api/azure/devops/release/releases/… – Cece Dong - MSFT