For other ways of deploying a jhipster web app to azure check this out.
Web app for containers terraform.
Changing this forces a new resource to be created.
A few months back i noticed that web apps had a new option for using docker containers so about a week ago i decided to see if i could create an azure web app for containers using terraform.
First create a folder for our terraform files.
If specified java version and java container version must also be specified.
Name required specifies the name of the app service slot component.
Java container optional the java container to use.
Resources using terraform to get the containers running.
If specified java container and java container version must also be specified.
It turns out this is already possible but it took some fiddling to figure out what i needed to set up in terraform.
Argument reference the following arguments are supported.
Contribute to drupalwxt terraform containers webapp azure development by creating an account on github.
Just pull container images from docker hub or a private azure container registry and web app for containers will deploy the containerized app with your preferred dependencies to production in seconds.
Resource group name required the name of the resource group in which to create the app service slot component.
Example usage docker single container.
But if you want to use azure web apps as your container host the terraform documentation is missing dedicated configuration details for containers on app services.
The name of an existing resource group to use for the web app.
Location required specifies the supported azure location where the resource exists.
Java version optional the version of java to use.
Also be changed and will be immediately reflected in the app running from container.
The name of the web app.
Possible values are 1 7 1 8 and 11 and their specific versions except for java 11 e g.
Terraform for azure app service for containers.
Luckily i found some further information about that in several github issues so it is time to bring all the details together.
Setup and run web app on terraform using docker.
Now that our application and docker images are ready let s prepare the terraform infrastructure for app service and mysql database.
It has never been easier to deploy container based web apps.