This is alpha code provided as an example. What we ended up doing for v1.0 is to have 3 subscriptions; in the lowest one we would create manually Azure resources, configure them in detail, and export complete Azure ARM Template. These ARM files were then used to deploy in the other two subscriptions (one dedicated to testing and the other to production). The following code is based on the Pulumi-Azure interface and it aims at automating this process.
az login
pulumi login
pulumi new azure-python
pip install pulumi pulumi_azure pulumi_azure_native
Replace __main__.py
content with infra-pulumi-alpha.py
content
pulumi up
pulumi stack
pulumi destroy