Before You Begin
Before you get started using Pulumi, let's run through a few quick steps to ensure your environment is set up correctly.
Install Pulumi
Install Pulumi on macOS through Homebrew:
$ brew install pulumiFor alternative installation instructions (e.g. script-based installation, binaries, etc.) or troubleshooting, see Download and Install.
Next, install the required language runtime, if you have not already.
Install Language Runtime
Choose Your Language
Install Node.js.
If you're having trouble setting up Node.js up on your machine, see Installing Node.js via Package Manager for alternative installation options.
Finally, configure Pulumi with Microsoft Azure.
Configure Pulumi to access your Microsoft Azure account
Pulumi requires cloud credentials to manage and provision resources. Pulumi can authenticate to Azure using a user account or service principal that has Programmatic access with rights to deploy and manage your Azure resources.
注意
Pulumi relies on the Azure SDK to authenticate requests from your computer to Azure. Your credentials are never sent to pulumi.com.
In this guide, you will need a user account with permissions to create and populate Blob storage containers and provide anonymous access to a Blob file.
When developing locally, we recommend that you install the Azure CLI and then authorize access with a user account.
az loginAfter successfully logging in, you are ready to go.
注意
The Azure CLI, and thus Pulumi, will use the default subscription for the account. You can change the active subscription with the az account set command.
For additional information on authenticating with Azure, or to login with a service principal, see Azure Setup.
Next, you'll create a new project.