Example to create Azure Resource using Pulumi (Infrastructure as Code), in order to create basic yet complex azure infrastructure. Followimng are the list of resources getting created using this method
- azure resource group
- azure storage account
- enable static website for azure stoerage account
- add index and error html page
- enable azure cdn for static website
-
Clone rep and move inside that directory
https://github.com/Shatabdi2621/pulumi-resource-guide.git
-
Compile the project and install all the dependenies
-
Check az log-in the command prompt, & then check integration of Pulumi with your local machine
-
Move inside MyStack.cs
-
Execute the following commands
pulumi preview
To preview the list of resources getting created using the MyStack.cs
pulumi up
To deploy the infrastructure over the azure cloud account
Optional
pulumi destroy
To destroy the infrastructure created if you need to make any modification or created for testing purpose
Primary Requiremnets for the project
- azure cloud account with login, connected to your system
- pulumi account with login, connected to your system
- azure cli
- pulumi cli