Hi there - new to Pulumi and struggling with Slack...
# getting-started
r
Hi there - new to Pulumi and struggling with Slack at the moment so please excuse this message (cant seem to format it very well) I have created a Visual Studio solution with two projects. Deployment is a C# Pulumi project with the necessary code to create a Resource Group in Azure. If i run Pulumi up this works as expected. So far so good! The second project - Infrastructure, is basically an empty project (C# class library) which will hold further code in due course. I have an azure-pipelines.yml file in the solution at the same level as the projects i.e. not within the Deployment project. This is all within a GitHub repo which is connected to Azure DevOps. The DevOps library holds the details for the service principal (connection to azure subscription) and the pulumi access token details. It also has the stack name and working directory details. When I run the pipeline I get the following error: ##[error]Error: There was an error when attempting to execute the process 'D:\a\_temp\aa8550c9-81e6-4520-a3ab-bbac6a308c44\pulumi\bin\pulumi.exe'. This may indicate the process failed to start. Error: spawn D:\a\_temp\aa8550c9-81e6-4520-a3ab-bbac6a308c44\pulumi\bin\pulumi.exe ENOENT From what I can see i assume Pulumi is correctly installing on the agent (returning version number) and I'm assuming that the working directory is incorrect but for the life of me I cant work out what the correct value should be! Any advice please. Martyn
w
Not exactly sure what the issue is, but I wonder if cwd should be “./TNC.Pulumi.Deployment” since I’m thinking the code is already in the the TNC.Pulumi folder? FWIW, here is an example repo that works (I just tested it with windows-latest instead of ubuntu-latest to see if that was an issue -it’s not.) https://github.com/MitchellGerdisch/pulumi_azure-pipeline_play You can ignore the CmdLine@2 stuff - that was from some other tinkering I was doing. But maybe adding some lines like that to see where things are when the pipeline runs (e.g. ls commands and the like) might shed light on what’s going on.
r
Thanks Mitch after significant trial and error i have come across: stack name: MartynFewtrell/TNC.Pulumi.Deployment/dev working directory: TNC.Pulumi.Deployment/ which now appears to work!
w
Glad to hear you got it working!