Starting point for building the Pulumi web server sample in Azure.
-
Create a new stack:
$ pulumi stack init webserver-azure-testing
-
Configure the app deployment. The username and password here will be used to configure the Virtual Machine. The password must adhere to the Azure restrictions on VM passwords.
$ pulumi config set azure:environment public $ pulumi config set username testuser $ pulumi config set --secret password <yourpassword>
-
Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az login
-
Restore NPM dependencies:
$ npm install
-
Run
pulumi up
to preview and deploy changes:$ pulumi up Previewing changes: ... Performing changes: ... info: 7 changes performed: + 7 resources created Update duration: 2m38.391208237s
-
Check the IP address:
$ pulumi stack output publicIP 40.112.181.239