Author : MD TAREQ HASSAN | Updated : 2021/10/04
Prerequisites
- Visual Studio or Visual Studio Code
- .Net Core 3.1+
- Azure SDK (i.e. Visual Studio Azure Workload)
- Install Pulumi
Stack State Backend
- Azure Storage Blob Container as Stack State Backend
- Pulumi Service as Stack State Backend
- Saving Stack State Locally
Create Pulumi Project using Pulumi CLI
- “Pulumi Service” will be used as stack state backend
- Create a folder named “
-pulumi-project" cd "<xxx>-pulumi-project"
pulumi new azure-csharp
:pulumi new <tmeplate-name>
:- Scaffolds project in current directory based on the specified template
- ‘azure-csharp’ is a template provided by Pulumi (https://github.com/pulumi/templates)
- Folder in which Pulumi project is being scaffoled (“
-pulumi-project") will be name of the project - pulumi new command creates a new Pulumi project with some basic scaffolding based on the cloud and language specified
#
# Set Azure region for your stack
#
pulumi config set azure-native:location japaneast
#
# Project folder
#
mkdir <xxx>-pulumi-project && cd <xxx>-pulumi-project
#
# Create Pulumi project
#
pulumi new azure-csharp
Now, use Visual Studio to open the created/scaffolded Pulumi protect
Next
- Review the generated project files: https://www.pulumi.com/docs/get-started/azure/review-project/