Hello, if you want to assign to the AZURE_DEVOPS_AGENT_PAT the value of the $(AgentPAT) , please make sure that the $(AgentPAT) --> AgentPAT is part of a variable group, in the pipelines section you have "Library" then you need to create a variable group, and in that variable group you need to create an entry with the AgentPAT value and the pair that is the actual - secret. or link it yo an existing keyvault and reference it like that . and you also need to add that variable group into the pipeline. eg. variable group name : PatTokens variables: - group: PatTokens
This means you imported the variable group and the variables in that group can no be refferenced as you want and assigned into the pipeline just as your code does above.