Resources using terraform to get the containers running.
Web app for containers terraform.
The name of an existing resource group to use for the web app.
Luckily i found some further information about that in several github issues so it is time to bring all the details together.
If specified java version and java container version must also be specified.
It has never been easier to deploy container based web apps.
Web app for containers azure app service create web app for containers azure app service.
Argument reference the following arguments are supported.
Example usage docker single container.
Deploy to azure in seconds.
Contribute to drupalwxt terraform containers webapp azure development by creating an account on github.
If specified java container and java container version must also be specified.
Also be changed and will be immediately reflected in the app running from 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.
Changing this forces a new resource to be created.
Java version optional the version of java to use.
Name required specifies the name of the app service slot component.
Resource group name required the name of the resource group in which to create the app service slot component.
Possible values are 1 7 1 8 and 11 and their specific versions except for java 11 e g.
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.
You can also push to azure container registry instead of docker hub if you like.
For other ways of deploying a jhipster web app to azure check this out.
Now that our application and docker images are ready let s prepare the terraform infrastructure for app service and mysql database.
It turns out this is already possible but it took some fiddling to figure out what i needed to set up in terraform.
Setup and run web app on terraform using docker.
Location required specifies the supported azure location where the resource exists.
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.