Get started with Pulumi and Azure
Deploy to Azure
Now run pulumi up to start deploying your new storage account:
$ pulumi up
This command first shows you a preview of the changes that will be made:
Previewing update (dev):
Type Name Plan
+ pulumi:pulumi:Stack quickstart-dev create
+ ├─ azure-native:resources:ResourceGroup resourceGroup create
+ └─ azure-native:storage:StorageAccount sa create
Outputs:
storageAccountName: [unknown]
Resources:
+ 3 to create
Do you want to perform this update?
> yes
no
details
No changes have been made yet. You may decline to proceed by selecting no or choose details to
see more information about the proposed update like your storage account’s properties.
Performing the update
To proceed and deploy your new storage account, select yes. This begins an update:
Do you want to perform this update? yes
Updating (dev)
View in Browser (Ctrl+O): https://app.pulumi.com/your-org-name/quickstart/dev/updates/1
Type Name Status
+ pulumi:pulumi:Stack quickstart-dev created (25s)
+ ├─ azure-native:resources:ResourceGroup resourceGroup created (2s)
+ └─ azure-native:storage:StorageAccount sa created (20s)
Outputs:
storageAccountName: "sa8deefa78"
Resources:
+ 3 created
Duration: 27s
Updates can take some time since they wait for the cloud resources to finish being created. Storage accounts may take a bit longer, so the update could finish in 20-30 seconds.
-8deefa78) are the result of auto-naming,
a feature that lets you use the same resource names across multiple stacks without naming collisions. You can
disable or fine-tune this. To learn how, read more about
auto-naming.Using stack outputs
The storage account name is available as a stack output. To view it:
$ pulumi stack output storageAccountName
$ pulumi stack output storage_account_name
Running that command will print out the storage account’s name.
View your update on Pulumi Cloud
If you are logged into Pulumi Cloud, you’ll see “View Live” hyperlinks in the CLI output during your update. These go to a page with detailed information about your stack including resources, configuration, a full history of updates, and more. Navigate to it to review the details of your update:

Now that the storage account has been provisioned, you’ll update it to host a static website.
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.
