This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.18.0
published on Saturday, May 9, 2026 by Pulumi
published on Saturday, May 9, 2026 by Pulumi
Web Server Using Azure Virtual Machine
I want to use the Pulumi Azure Native package (azure-native) in my project.
## Provider details
- Package: azure-native
- Version: v3.18.0
- Publisher: Pulumi
- Source: pulumi
- Repository: https://github.com/pulumi/pulumi-azure-native
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumi/azure-native/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/azure-native/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/azure-native/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/azure-native/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.18.0
published on Saturday, May 9, 2026 by Pulumi
published on Saturday, May 9, 2026 by Pulumi
This example deploys an Azure Virtual Machine and starts an HTTP server on it.
Prerequisites
Deploying and running the program
Create a new stack:
$ pulumi stack init devSet the required configuration for this example. This example requires you to supply a username and password to the virtual machine that we are going to create.
$ pulumi config set azure-native:location westus # any valid Azure region will do $ pulumi config set username webmaster $ pulumi config set password --secret <your-password>Note that
--secretensures your password is encrypted safely.Run
pulumi upto preview and deploy the changes:$ pulumi update Previewing update (azuredev): Type Name Plan + pulumi:pulumi:Stack azure-py-webserver-azuredev create + ├─ azure-native:core:ResourceGroup server create + ├─ azure-native:network:VirtualNetwork server-network create + ├─ azure-native:network:PublicIp server-ip create + ├─ azure-native:network:Subnet server-subnet create + ├─ azure-native:network:NetworkInterface server-nic create + └─ azure-native:compute:VirtualMachine server-vm create Resources: + 7 to create Do you want to perform this update? yes Updating (azuredev): Type Name Status + pulumi:pulumi:Stack azure-py-webserver-azuredev created + ├─ azure-native:core:ResourceGroup server created + ├─ azure-native:network:VirtualNetwork server-network created + ├─ azure-native:network:PublicIp server-ip created + ├─ azure-native:network:Subnet server-subnet created + ├─ azure-native:network:NetworkInterface server-nic created + └─ azure-native:compute:VirtualMachine server-vm created Outputs: public_ip: "137.117.15.111" Resources: + 7 created Duration: 2m55s Permalink: https://app.pulumi.com/swgillespie/azure-py-webserver/azuredev/updates/3Get the IP address of the newly-created instance from the stack’s outputs:
$ pulumi stack output public_ip 137.117.15.111Check to see that your server is now running:
$ curl http://$(pulumi stack output public_ip) Hello, World!Destroy the stack:
▶ pulumi destroy --yes Previewing destroy (azuredev): Type Name Plan - pulumi:pulumi:Stack azure-py-webserver-azuredev delete - ├─ azure-native:compute:VirtualMachine server-vm delete - ├─ azure-native:network:NetworkInterface server-nic delete - ├─ azure-native:network:Subnet server-subnet delete - ├─ azure-native:network:PublicIp server-ip delete - ├─ azure-native:network:VirtualNetwork server-network delete - └─ azure-native:core:ResourceGroup server delete Resources: - 7 to delete Destroying (azuredev): Type Name Status - pulumi:pulumi:Stack azure-py-webserver-azuredev deleted - ├─ azure-native:compute:VirtualMachine server-vm deleted - ├─ azure-native:network:NetworkInterface server-nic deleted - ├─ azure-native:network:Subnet server-subnet deleted - ├─ azure-native:network:VirtualNetwork server-network deleted - ├─ azure-native:network:PublicIp server-ip deleted - └─ azure-native:core:ResourceGroup server deleted Resources: - 7 deleted Duration: 3m49s Permalink: https://app.pulumi.com/swgillespie/azure-py-webserver/azuredev/updates/4
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.18.0
published on Saturday, May 9, 2026 by Pulumi
published on Saturday, May 9, 2026 by Pulumi
