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