Pass a Variable group name using REST API Azure devops
问题 Is there any way to pass a variable group name to a release pipeline using REST API without editing the release definition. I am able to do it using the following $defurl = "https://vsrm.dev.azure.com/org/proj/_apis/release/definitions/13?api-version=5.1" $def = Invoke-RestMethod -Uri $defurl -Method Get -Headers $header $def.variableGroups="VariableGroupName" $json = @($def) | ConvertTo-Json -Depth 99 $udef = Invoke-RestMethod -Uri $defurl -Method Put -Body $json -ContentType "application