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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.752s · 212MB
glibcpy 3.10–3.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)
Errors
Common errors & fixes
ImportError: cannot import name 'ResourceGroup' from 'pulumi_azure'
Attempting to import ResourceGroup from the top-level package instead of submodule.
fixUse: 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.
fixUse the Pulumi resource class, e.g., ResourceGroup instead of 'azurerm_resource_group'.
KeyError: 'location'
Forgot to specify location for a resource that requires it.
fixAdd 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