Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

Create Web App from Docker Container in Azure

You have a custom application that your company wants you to deploy. This application is optimized for containers, and you have been given a Dockerfile. The company mandates that all container images be stored in Azure Container Registry. Find the best solution to host your containerized application in Azure App Service.

Azure icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 45m
Published
Clock icon Oct 09, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Start Cloud Shell

    1. Click the Cloud Shell icon (>_) in the upper right.
    2. Select Bash.
    3. Click Show advanced settings.
    4. Change Cloud Shell Region to the same location as your lab provided resource group.
    5. For Storage account, select Use existing.
    6. For File share, select Create new and give it a name of "fileshare".
    7. Click Create storage.
  2. Challenge

    Set Resource Variables in Cloud Shell

    1. Set the ACR (Azure Container Registry) variable. You can use any unique meaningful name for the "<ACR_NAME>":
    2. In the Azure portal, click the listed resource group name.
    3. Copy it to your clipboard.
    4. In Cloud Shell, set the RG variable, replacing <RESOURCE_GROUP_NAME> with the name you just copied.
  3. Challenge

    Create a New Container Registry

    Create a new Azure Container Registry.

  4. Challenge

    Build an Image and Push to ACR

    1. Change the directory to clouddrive.

    2. Clone the js-docker branch of the github repository.

    3. Change the directory to js-docker.

    4. Build and push the image to Azure Container Registry using ACR Tasks and the Dockerfile provided.

  5. Challenge

    Create and Deploy a New Web App

    1. In the Azure portal, open the upper left menu and click App Services.

    2. In the upper left, click +Create.

    3. On the Create Web App page, set the following values:

      • Resource Group: Existing resource group
      • Name: Unique name
      • Publish: Docker Container
    4. Click Explore pricing plans and select the Standard S1 size.

    5. Click Apply.

    6. Click Next: Docker.

    7. In Image Source, select Azure Container Registry and click Review + create.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans