Registry / azure / pulumi-azure

pulumi-azure

JSON →
library6.38.0pypypi✓ verified 86d ago

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. Version 6.35.0, released monthly. Note: Pulumi recommends using the Azure Native provider (pulumi-azure-native) for complete coverage and same-day updates.

pip install pulumi-azure
INSTALL
IMPORT
SIG · PULUMI-AZURE
P
pulumi-azure
azurepythonv6.38.0
Install
13.9s avg
Import
1405ms
Disk
222MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.38.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.752s · 212MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 13.9s · import 1.058s · 197MB
222MB installed
● package 222MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ResourceGroup
from pulumi_azure.core import ResourceGroup
from pulumi_azure import ResourceGroup
ResourceGroup is in pulumi_azure.core, not top-level
AppServicePlan
from pulumi_azure.appservice import Plan
from pulumi_azure.appservice import AppServicePlan
Class name is Plan, not AppServicePlan

Create an Azure Resource Group using Pulumi

import pulumi from pulumi_azure.core import ResourceGroup config = pulumi.Config() location = config.get("location", "West Europe") rg = ResourceGroup("my-rg", location=location) pulumi.export("resource_group_name", rg.name)
Debug
Known issues
deprecatedpulumi-azure is deprecated in favor of pulumi-azure-native for new projects. Azure Native provides complete coverage and same-day updates.
fix
Use pulumi-azure-native instead: pip install pulumi-azure-native
affects: >=6.0.0
breakingVersion 6.0.0 introduced breaking changes, including renaming resources and modules. For example, azure.publicip became azure.network.PublicIp.
fix
Consult the migration guide: https://www.pulumi.com/docs/guides/crosswalk/azure/migration-v5-v6/
affects: 5.x -> 6.x
gotchaResource group location must be set explicitly; it does not default to the provider region.
fix
Always specify the location argument for resources that require it.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'ResourceGroup' from 'pulumi_azure'
Attempting to import ResourceGroup from the top-level package instead of submodule.
fix
Use: from pulumi_azure.core import ResourceGroup
pulumi_azure.exceptions.InvalidResourceType: The resource type 'azurerm_resource_group' is not valid
Using Terraform-style resource names (azurerm_*) in Pulumi.
fix
Use the Pulumi resource class, e.g., ResourceGroup instead of 'azurerm_resource_group'.
KeyError: 'location'
Forgot to specify location for a resource that requires it.
fix
Add the location argument: ResourceGroup("my-rg", location="West US")
Upgrade
Version history
6.38.0latest on PyPI · released May 28, 2026
Audit
Dependencies
pulumirequiredCore Pulumi SDK required
Agent activity
31 hits · last 30 days
node
27
OpenAI (training)
1
Resources