0% found this document useful (0 votes)
92 views3 pages

LAB 09b-Implement Azure Container Instances

- Contoso wants to find a new platform for its virtualized workloads and identified several container images that can leverage Azure Container Instances, which aims to minimize container management. - The objectives are to deploy a Docker image using Azure Container Instance and review its functionality. This includes creating a container instance for a web application, verifying it runs successfully, and cleaning up resources. - The estimated time is 20 minutes and instructions are provided on deploying the container instance, reviewing the deployment, and cleaning up resources.

Uploaded by

Sec About
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views3 pages

LAB 09b-Implement Azure Container Instances

- Contoso wants to find a new platform for its virtualized workloads and identified several container images that can leverage Azure Container Instances, which aims to minimize container management. - The objectives are to deploy a Docker image using Azure Container Instance and review its functionality. This includes creating a container instance for a web application, verifying it runs successfully, and cleaning up resources. - The estimated time is 20 minutes and instructions are provided on deploying the container instance, reviewing the deployment, and cleaning up resources.

Uploaded by

Sec About
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

---

lab:
title: '09b - Implement Azure Container Instances'
module: 'Module 09 - Serverless Computing'
---

# Lab 09b - Implement Azure Container Instances


# Student lab manual

## Lab scenario

Contoso wants to find a new platform for its virtualized workloads. You identified
a number of container images that can be leveraged to accomplish this objective.
Since you want to minimize container management, you plan to evaluate the use of
Azure Container Instances for deployment of Docker images.

## Objectives

In this lab, you will:

- Task 1: Deploy a Docker image by using the Azure Container Instance


- Task 2: Review the functionality of the Azure Container Instance

## Estimated timing: 20 minutes

## Architecture diagram

![image](../media/lab09b.png)

## Instructions

### Exercise 1

#### Task 1: Deploy a Docker image by using the Azure Container Instance

In this task, you will create a new container instance for the web application.

1. Sign in to the [Azure portal](https://portal.azure.com).

1. In the Azure portal, search for locate **Container instances** and then, on the
**Container instances** blade, click **+ New**.

1. On the **Basics** tab of the **Create container instance** blade, specify the
following settings (leave others with their default values):

| Setting | Value |
| ---- | ---- |
| Subscription | the name of the Azure subscription you are using in this lab |
| Resource group | the name of a new resource group **az104-09b-rg1** |
| Container name | **az104-9b-c1** |
| Region | the name of a region where you can provision Azure container
instances |
| Image Source | **Quickstart images** |
| Image | **mcr.microsoft.com/azuredocs/aci-helloworld:latest (Linux)** |

1. Click **Next: Networking >** and, on the **Networking** tab of the **Create
container instance** blade, specify the following settings (leave others with their
default values):
| Setting | Value |
| --- | --- |
| DNS name label | any valid, globally unique DNS host name |

>**Note**: Your container will be publicly reachable at dns-name-


label.region.azurecontainer.io. If you receive a **DNS name label not available**
error message, specify a different value.

1. Click **Next: Advanced >**, review the settings on the **Advanced** tab of the
**Create container instance** blade without making any changes, click **Review +
Create**, ensure that the validation passed and click **Create**.

>**Note**: Wait for the deployment to complete. This should take about 3
minutes.

>**Note**: While you wait, you may be interested in viewing the [code behind
the sample application](https://github.com/Azure-Samples/aci-helloworld). To view
it, browse the \\app folder.

#### Task 2: Review the functionality of the Azure Container Instance

In this task, you will review the deployment of the container instance.

1. On the deployment blade, click the **Go to resource** link.

1. On the **Overview** blade of the container instance, verify that **Status** is


reported as **Running**.

1. Copy the value of the container instance **FQDN**, open a new browser tab, and
navigate to the corresponding URL.

1. Verify that the **Welcome to Azure Container Instance** page is displayed.

1. Close the new browser tab, back in the Azure portal, in the **Settings** section
of the container instance blade, click **Containers**, and then click **Logs**.

1. Verify that you see the log entries representing the HTTP GET request generated
by displaying the application in the browser.

#### Clean up resources

>**Note**: Remember to remove any newly created Azure resources that you no
longer use. Removing unused resources ensures you will not see unexpected charges.

1. In the Azure portal, open the **PowerShell** session within the **Cloud Shell**
pane.

1. List all resource groups created throughout the labs of this module by running
the following command:

```powershell
Get-AzResourceGroup -Name 'az104-09b*'
```

1. Delete all resource groups you created throughout the labs of this module by
running the following command:

```powershell
Get-AzResourceGroup -Name 'az104-09b*' | Remove-AzResourceGroup -Force -AsJob
```

>**Note**: The command executes asynchronously (as determined by the -AsJob


parameter), so while you will be able to run another PowerShell command immediately
afterwards within the same PowerShell session, it will take a few minutes before
the resource groups are actually removed.

#### Review

In this lab, you have:

- Deployed a Docker image by using the Azure Container Instance


- Reviewed the functionality of the Azure Container Instance

You might also like