Custom Docker Image running in Azure Container Instances
Starting point for building web application hosted in Azure Container Instances.
Deploying the App
To deploy your infrastructure, follow the below steps.
Prerequisites
Steps
Create a new stack:
$ pulumi stack init devLogin to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az loginConfigure the location to deploy the resources to:
$ pulumi config set azure:location <location>Run
pulumi upto preview and deploy changes:```bash $ pulumi up …
Check the deployed container endpoint:
$ pulumi stack output endpoint acigo.westus.azurecontainer.io $ curl "$(pulumi stack output endpoint)" <html> <head><meta charset="UTF-8"> <title>Hello, Pulumi!</title></head> <body> <p>Hello, containers!</p> <p>Made with ❤️ with <a href="https://pulumi.com">Pulumi</a></p> </body></html>From there, feel free to experiment. Simply making edits and running
pulumi upwill incrementally update your stack.Once you’ve finished experimenting, tear down your stack’s resources by destroying and removing it:
$ pulumi destroy --yes $ pulumi stack rm --yes