I am trying to update the value of a single variable of a variable group using Az DevOps Rest API. As per my initial experiments, it doesnt seem to be possible?
This is what I have tried:
Say I have a variable group called : my-var-group that has variables: my-variable-1:val1 my-variable-2:val2 And if I try :
curl -X PUT -H "Authorization: Bearer $token" -H "Content-Type:application/json" 'https://dev.azure.com/my-org/my-proj/_apis/distributedtask/variablegroups/201?api-version=5.1-preview.1' --data '{"variables":{"my-variable-1":{"value":"random1"}},"name":"my-var-group"}'
my-variable-1 is assigned value random1 but my-variable-2 is deleted. Is there anyway to only update one variable?
