0
0
Azurecloud~30 mins

Azure Container Instances (ACI) for simple runs - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure Container Instances (ACI) for simple runs
📖 Scenario: You want to run a simple containerized application in the cloud without managing servers. Azure Container Instances (ACI) lets you quickly deploy containers on demand.Imagine you have a small app that prints a message. You want to create an ACI instance to run this app easily.
🎯 Goal: Create an Azure Container Instance that runs a simple container image with a specified CPU and memory allocation.
📋 What You'll Learn
Create a resource group named myResourceGroup
Create a container group named myContainerGroup
Use the container image mcr.microsoft.com/azuredocs/aci-helloworld
Assign 1 CPU core and 1.5 GB memory to the container
Set the container to restart Never
💡 Why This Matters
🌍 Real World
Azure Container Instances let you run containers quickly without managing servers, ideal for simple apps, testing, or batch jobs.
💼 Career
Knowing how to deploy containers on Azure is a key skill for cloud engineers and developers working with cloud-native applications.
Progress0 / 4 steps
1
Create the resource group
Write the Azure CLI command to create a resource group named myResourceGroup in the eastus region.
Azure
Need a hint?

Use az group create with --name and --location options.

2
Define the container group configuration
Create a variable called containerGroupName and set it to myContainerGroup. Also create a variable called imageName and set it to mcr.microsoft.com/azuredocs/aci-helloworld.
Azure
Need a hint?

Use simple variable assignments like containerGroupName=myContainerGroup.

3
Create the container instance with CPU and memory settings
Write the Azure CLI command to create a container instance in resource group myResourceGroup with the name stored in containerGroupName, using the image stored in imageName. Assign 1 CPU core and 1.5 GB memory. Set the restart policy to Never.
Azure
Need a hint?

Use az container create with options for resource group, name, image, CPU, memory, and restart policy.

4
Verify the container instance status
Write the Azure CLI command to show the details of the container instance named myContainerGroup in resource group myResourceGroup.
Azure
Need a hint?

Use az container show with resource group and container name to check status.