Web Server Using Azure Virtual Machine
Starting point for building the Pulumi web server sample in Azure.
Running the App
Create a new stack:
$ pulumi stack init webserver-azure-testingConfigure 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 loginRestore NPM dependencies:
$ npm installRun
pulumi upto preview and deploy changes:$ pulumi up Previewing changes: ... Performing changes: ... info: 7 changes performed: + 7 resources created Update duration: 2m38.391208237sCheck the IP address:
$ pulumi stack output publicIP 40.112.181.239