Skip to content

Commit 966640c

Browse files
Merge pull request #48721 from ShawnKupfer/WB1619
Technical Review 1016216: Run Docker containers with Azure Container …
2 parents a0c78f4 + 1f59e2f commit 966640c

17 files changed

+49
-40
lines changed

learn-pr/azure/run-docker-with-azure-container-instances/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Introduction
77
description: Introduction to Azure Container Instances.
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/2-run-aci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Exercise - Run Azure Container Instances
77
description: Run Azure Container Instances.
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/3-restart-policies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Exercise - Control Azure Container Instances restart behavior
77
description: Control Container Instances restart behavior.
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/4-use-environment-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Exercise - Set environment variables
77
description: Set environment variables in Azure Container Instances.
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/5-use-data-volumes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Exercise - Use data volumes
77
description: Use data volumes with Azure Container Instances (ACI).
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/6-troubleshoot-aci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
prefetch-feature-rollout: true
66
title: Exercise - Troubleshoot Azure Container Instances
77
description: Troubleshoot Azure Container Instances.
8-
ms.date: 04/03/2024
8+
ms.date: 01/15/2025
99
author: v-tcassi
1010
ms.author: tomcassidy
1111
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/7-knowledge-check.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Knowledge check
88
description: Knowledge check
9-
ms.date: 04/03/2024
9+
ms.date: 01/15/2025
1010
author: v-tcassi
1111
ms.author: tomcassidy
1212
ms.topic: unit
@@ -19,35 +19,35 @@ quiz:
1919
choices:
2020
- content: Always
2121
isCorrect: true
22-
explanation: "The restart policy **Always** will ensure needed processes continue to be available even if a restart is required."
22+
explanation: "The restart policy **Always** ensures needed processes continue to be available even if a restart is required."
2323
- content: Never
2424
isCorrect: false
25-
explanation: "The restart policy **Always** will ensure needed processes continue to be available even if a restart is required."
25+
explanation: "The restart policy **Always** ensures needed processes continue to be available even if a restart is required."
2626
- content: OnFailure
2727
isCorrect: false
28-
explanation: "The restart policy **Always** will ensure needed processes continue to be available even if a restart is required."
28+
explanation: "The restart policy **Always** ensures needed processes continue to be available even if a restart is required."
2929

3030
- content: "By default, you can see the values of an environment variable in:"
3131
choices:
3232
- content: "Only the Azure portal."
3333
isCorrect: false
34-
explanation: "Environment variables are not secured by default and their values can be seen in the Azure portal and the Azure CLI output."
34+
explanation: "Environment variables are not secured by default, and you can see their values in the Azure portal and the Azure CLI output."
3535
- content: "Only the Azure CLI output."
3636
isCorrect: false
37-
explanation: "Environment variables are not secured by default and their values can be seen in the Azure portal and the Azure CLI output."
37+
explanation: "Environment variables are not secured by default, and you can see their values in the Azure portal and the Azure CLI output."
3838
- content: "Both the Azure portal and the Azure CLI output."
3939
isCorrect: true
40-
explanation: "Environment variables are not secured by default and their values can be seen in the Azure portal and the Azure CLI output."
40+
explanation: "Environment variables are not secured by default, and you can see their values in the Azure portal and the Azure CLI output."
4141

42-
- content: "Which troubleshooting command can be used to view container startup events?"
42+
- content: "Which troubleshooting command can you use to view container startup events?"
4343
choices:
44-
- content: az container logs
44+
- content: "`az container logs`"
4545
isCorrect: false
4646
explanation: "The `az container logs` command examines the logs for a container in a container group."
47-
- content: az container attach
47+
- content: "`az container attach`"
4848
isCorrect: true
4949
explanation: "The `az container attach` command shows container events and logs. By contrast, the `az container logs` only shows the logs and not the startup events."
50-
- content: az container exec
50+
- content: "`az container exec`"
5151
isCorrect: false
5252
explanation: "The `az container exec` command executes a command from within a running container of a container group."
5353

learn-pr/azure/run-docker-with-azure-container-instances/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
prefetch-feature-rollout: true
77
title: Summary
88
description: "Summary"
9-
ms.date: 04/03/2024
9+
ms.date: 01/15/2025
1010
author: v-tcassi
1111
ms.author: tomcassidy
1212
ms.topic: unit

learn-pr/azure/run-docker-with-azure-container-instances/includes/1-introduction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ In this module, you'll:
99
- Use environment variables to configure your container when it starts.
1010
- Attach a data volume to persist data when your container exits.
1111
- Learn some basic ways to troubleshoot issues on your Azure containers.
12+
13+
## Prerequisites
14+
15+
You need your own Azure subscription to run this exercise, and you might incur charges. If you don't already have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.

learn-pr/azure/run-docker-with-azure-container-instances/includes/2-run-aci.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Create a container in Azure and expose it to the Internet with a fully qualified domain name (FQDN).
1+
In this unit, you create a container in Azure and expose it to the Internet with a fully qualified domain name (FQDN).
22

33
[!include[](../../../includes/azure-exercise-subscription-prerequisite.md)]
44

@@ -37,7 +37,9 @@ For scenarios where you need full container orchestration, including service dis
3737
DNS_NAME_LABEL=aci-demo-$RANDOM
3838
```
3939
40-
1. Run the following `az container create` command to start a container instance:
40+
1. Create a container by providing a name, a Docker image, and an Azure resource group to the `az container create` command. You can optionally expose the container to the Internet by specifying a DNS name label. In this example, deploy a container that hosts a small web app. You can also select the location to place the image; we use the **East US** region, but you can change it to a location close to you.
41+
42+
Run the following `az container create` command to start a container instance:
4143
4244
```azurecli
4345
az container create \
@@ -69,12 +71,12 @@ For scenarios where you need full container orchestration, including service dis
6971
aci-demo-0000.eastus.azurecontainer.io Succeeded
7072
````
7173
72-
If your container is in the **Creating** state, wait a few moments, and run the command again until you see the **Succeeded** state.
74+
If your container is in the **Creating** state, wait a few moments and run the command again until you see the **Succeeded** state.
7375
7476
1. From a browser, go to your container's FQDN to see it running. Ensure you enter the *http://* prefix in front of the *aci-demo...* string. You should get this welcome page:
7577
7678
:::image type="content" source="../media/2-browser.png" alt-text="Screenshot of the sample Node.js container app running in a browser." loc-scope="other"::: <!-- no-loc -->
7779
7880
## Summary
7981
80-
Here, you created an Azure container instance to run a web server and application. You also accessed this application using the FQDN of the container instance.
82+
Here, you created an Azure container instance to run a web server and application. You also accessed this application using the container instance's FQDN.

0 commit comments

Comments
 (0)