Use Infrastructure as Code and Pulumi to provision Azure resources
Introduction
Motivation
Pulumi
Pulumi project
Resources declaration and deployment
Next Steps
Use Infrastructure as Code and Pulumi to provision Azure resources
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Open the
azure-aci directory and run code . from that folder. This loads the TypeScript project and its Pulumi files in Visual Studio Code.You should see
Pulumi.yaml and a Node.js layout with package.json and node_modules. The program entry point index.ts is where you’ll define Azure resources.Replace the original contents with the provided code that imports
@pulumi/azure-native/resources and @pulumi/azure-native/containerinstance, creates a resource group named rg-arm64-iac, and defines a container group using the sample image mcr.microsoft.com/dotnet/samples:aspnetapp. Save the file before running the deployment.After Pulumi applies the changes, a new resource group named
rg-arm64-iac and a container instance are created in your subscription. You can confirm that the deployment worked by checking the resource group and container instance in the Azure Portal.No. The example uses the public image
mcr.microsoft.com/dotnet/samples:aspnetapp referenced in index.ts, so no local image build or registry push is required.