If you haven't heard about Form Recognizer yet, I advise you to have a look at my other posts around Knowledge Mining.
Why would you struggle with running the Docker container locally, when Azure offers multiple ways to host a container? In this article I will show you how to host your labeling tool in a cost effective way using Azure App Service on Linux, including easy to setup security.
Let me show you how to deploy this tool on Azure, in less than 5 minutes.
Start with creating a new Web App.
- Choose the right subscription and resource group.
- Name: your preferred name, which will also be used as a subdomain to access the tool
- Select Publish:
- Select Operating System:
- Select your preferred region
- Change the App Service Plan Sku if this is not set to
- Select Options:
- Select Image Source:
- Image and tag:
- Startup Command:
Review + create
Done! After your App Service has been deployed, you can access the application using the name you specified ending with azurewebsites.net.
For people who like to automate this process, or if you just don't like a graphical user interface, there is the Azure CLI. You could use the commands below to deploy the service on Azure programatically. Just don't forget to change the placeholders between <>.
az group create --name <resource-group-name> --location "westeurope" az appservice plan create --name <app-service-plan-name> --resource-group <resource-group-name> --sku B1 --is-linux az webapp create --resource-group <resource-group-name> --plan <app-service-plan-name> --name <web-app-name> --deployment-container-image-name mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool az webapp config set --startup-file "eula=accept"
The labeling tool doesn't store any information in a back-end, thus all the credentials for connecting to your blob storage stay on your computer. However, you probably don't want to host a tool for everyone in the world, since you are paying the bill.
It is possible to enable App Service Authentication with Azure Active Directory with a few clicks, where you can limit the usage to everyone in your organisation or to a certain group.
Your App Service has SSL by default, but it is advised to turn the mode to HTTPS only via TLS/SSL settings. Since you are tweaking the settings of your app service now, another advise would be to turn on HTTP version 2.0 in Configuration > General settings.
* App Service Basic Linux price has been reduced by 66% through July 31, 2020 as part of an ongoing Linux price promotion. (source)