Use Azure App Service to build and host web applications without managing the infrastructure. Azure takes care of auto-scaling and high availability. This tutorial will show you how to deploy a Docker container that was created with the application that uses the TX Text Control .NET Server for ASP.NET.

Prerequisites

The creation of the application and the container is not part of this tutorial.

Creating the Container

To learn how to create a Docker container required for an Azure App Services deployment, follow the steps in this tutorial.

Deploying an ASP.NET Core Web App with Docker

In order to complete this tutorial, the following prerequisites are required:

Pushing the Image to Docker Hub

For use in Azure App Services, the image must be pushed to the Docker Hub. You can push images directly to your Docker Hub account in Docker for Windows.

Docker

Alternatively, use the CLI to push the image to the Docker Hub.

docker login --username yourusername

docker tag txcore bjoernzett/txcore

docker push bjoernzett/txcore

Docker

Learn more

To learn how to push images to Docker Hub, refer to the Docker documentation.

Share the application

Create App Services

The resulting Docker container can then be deployed as an Azure Windows Container App on the Azure App Service.

  1. Open the Azure Portal and sign in with your Azure account.

  2. Find App Services in the left-hand menu and open it. Select + Add from the menu to create a new service. In the opened dialog, enter a name for the instance, select Docker container as the Publish option and select Windows as the Operating System.

    Azure

    Click Next : Docker.

  3. In the opened page, select Docker Hub as the Image Source, select the access type (visibility) and type in your image and tag.

    Azure

  4. Follow the next steps if you want to change any of these settings, and then click the Create button on the last tab to create the instance.

    Azure

  5. If the deployment has been successful, a summary page will be displayed.

    Azure

If you open a browser and navigate to the newly created resource, you will be able to see our tutorial that uses TX Text Control .NET Server for ASP.NET.

Azure