Please excuse me if this is a dim question but I am new to Pulumi (and probably missing something).
I have a working Azure DevOps pipeline running on a project in GitHub. I have managed to create a few basic resources in Azure etc.
I’m now trying to use the Pulumi.AzureDevOps library to manipulate the VariableGroup within my DevOps project. The end game is to extract values from the VariableGroup so that I can using them but for the moment have been trying to run the default code found at this link:
If I do a straightforward Copy/paste on the default code and run it I get an error on the pipeline:
azuredevops:index:Project project error: the personal access token is required
azuredevops:index:Project project 1 error
Makes sense as I have not provided any access to DevOps but its not obvious to me how I would do this!
To create Resources within Azure I passed a ServicePrincipal into the Pulumi@1 task using a variable (azureSubscription) and assume I should be doing something similar?
Thanks for any assistance!
PS I am ultimately looking to use:
public static VariableGroup Get(string name, Input<string> id, VariableGroupState? state, CustomResourceOptions? opts = null)
So if anybody had a working code example that would make life easier!