You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/2-azure-container-instances-overview.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/3-run-azure-container-instances-cloud-shell.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Exercise - Deploy a container to Azure Container Instances using Azure CLI commands
8
8
description: "Exercise - Deploy a container to Azure Container Instances using Azure CLI commands"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/4-run-containerized-tasks-restart-policies.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Run containerized tasks with restart policies
8
8
description: "Run containerized tasks with restart policies"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/5-set-environment-variables-azure-container-instances.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Set environment variables in container instances
8
8
description: "Set environment variables in container instances"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/6-mount-azure-file-share-azure-container-instances.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Mount an Azure file share in Azure Container Instances
8
8
description: "Mount an Azure file share in Azure Container Instances"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/7-knowledge-check.yml
+31-9Lines changed: 31 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
prefetch-feature-rollout: true
7
7
title: Module assessment
8
8
description: "Knowledge check"
9
-
ms.date: 06/17/2025
9
+
ms.date: 01/15/2024
10
10
author: wwlpublish
11
11
ms.author: jeffko
12
12
ms.topic: unit
@@ -17,36 +17,58 @@ durationInMinutes: 3
17
17
quiz:
18
18
title: "Check your knowledge"
19
19
questions:
20
-
- content: "Which of the following methods is recommended when deploying a multi-container group that includes only containers?"
20
+
- content: "When your deployment includes only container instances, which approach is recommended for deploying a multi-container group?"
21
21
choices:
22
-
- content: "Azure Resource Management template"
22
+
- content: "Azure Resource Manager template"
23
23
isCorrect: false
24
24
explanation: "Incorrect. Due to the YAML format's more concise nature, a YAML file is recommended when your deployment includes only container instances."
25
25
- content: "YAML file"
26
26
isCorrect: true
27
27
explanation: "Correct. Due to the YAML format's more concise nature, a YAML file is recommended when your deployment includes only container instances."
28
-
- content: "`az container creates` command"
28
+
- content: "Azure portal"
29
29
isCorrect: false
30
-
explanation: "Incorrect. This command isn't specific to this scenario."
30
+
explanation: "Incorrect. This module recommends using a YAML file (or a Resource Manager template) for multi-container group deployments."
31
31
- content: "What is the purpose of a restart policy in Azure Container Instances?"
32
32
choices:
33
33
- content: "To charge customers more for compute resources used while the container is running."
34
34
isCorrect: false
35
-
explanation: "Incorrect. The restart policy is not related to charging customers more for compute resources."
35
+
explanation: "Incorrect. The restart policy isn't related to charging customers more for compute resources."
36
36
- content: "To ensure that containers are never restarted, even if the process fails."
37
37
isCorrect: false
38
38
explanation: "Incorrect. The `Never` restart policy ensures that containers are run at most once, but it doesn't allow for restarting on failure."
39
39
- content: "To specify when and how containers should be restarted, based on the desired behavior."
40
40
isCorrect: true
41
41
explanation: "Correct. The restart policy allows you to specify when and how containers should be restarted, based on the desired behavior. This can help optimize resource usage and ensure that tasks are completed successfully."
42
-
- content: "If you want to mount multiple volumes, what options are at your disposal for deployment?"
42
+
- content: "If you want to mount multiple volumes, what options are available for deployment?"
43
43
choices:
44
44
- content: "YAML file only"
45
45
isCorrect: false
46
46
explanation: "While YAML file is a viable option, you can also use Azure Resource Manager templates."
47
47
- content: "Azure Resource Manager template and YAML file"
48
48
isCorrect: true
49
49
explanation: "Correct. To mount multiple volumes in a container instance, you must deploy using an Azure Resource Manager template or a YAML file."
50
-
- content: "Azure Resource Manager template and PowerShell"
50
+
- content: "Azure portal only"
51
51
isCorrect: false
52
-
explanation: "While Azure Resource Manager templates are a viable option, you can't use PowerShell commands to directly mount multiple volumes."
52
+
explanation: "Incorrect. The module explains that mounting multiple volumes requires a template-based approach such as a YAML file or an Azure Resource Manager template."
53
+
- content: "When you need to pass a secret as an environment variable in Azure Container Instances, which option is supported?"
54
+
choices:
55
+
- content: "Define the variable in a YAML file by using `secureValue`"
56
+
isCorrect: true
57
+
explanation: "Correct. Azure Container Instances supports secure environment variables in YAML by using the `secureValue` property."
58
+
- content: "Define the variable by using `--environment-variables` and expect the value to be visible in `az container show` output"
59
+
isCorrect: false
60
+
explanation: "Incorrect. Secure environment variable values aren't shown in container properties output. The secure value is accessible only from within the container."
61
+
- content: "Bake the secret into the container image and retrieve it from the file system at runtime"
62
+
isCorrect: false
63
+
explanation: "Incorrect. Baking secrets into an image isn't a recommended approach because it increases the chance of accidental disclosure and makes rotation harder."
64
+
- content: "Which statement about mounting an Azure Files share in Azure Container Instances is correct?"
65
+
choices:
66
+
- content: "You can mount Azure Files shares only to Linux containers"
67
+
isCorrect: true
68
+
explanation: "Correct. Azure Container Instances supports mounting Azure Files shares only for Linux containers."
69
+
- content: "You can mount Azure Files shares to Windows containers"
70
+
isCorrect: false
71
+
explanation: "Incorrect. This module notes that Azure Files share mounting in Azure Container Instances is supported only for Linux containers."
72
+
- content: "You can mount Azure Files over SMB by using managed identity"
73
+
isCorrect: false
74
+
explanation: "Incorrect. Azure Storage doesn't support SMB mounting of an Azure file share by using managed identity in this scenario."
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/includes/2-azure-container-instances-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ There are two common ways to deploy a multi-container group: use a Resource Mana
35
35
36
36
## Resource allocation
37
37
38
-
Azure Container Instances allocates resources such as CPUs, memory, and optionally GPUs (preview) to a container group by adding the resource requests of the instances in the group. If you create a container group with two instances, each requesting one CPU, then the container group is allocated two CPUs.
38
+
Azure Container Instances allocates resources such as CPUsand memory to a container group by adding the resource requests of the instances in the group. If you create a container group with two instances, each requesting one CPU, then the container group is allocated two CPUs.
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/create-run-container-images-azure-container-instances/includes/4-run-containerized-tasks-restart-policies.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ With a configurable restart policy, you can specify that your containers are sto
6
6
7
7
When you create a container group in Azure Container Instances, you can specify one of three restart policy settings.
8
8
9
-
Restart policy | Description
9
+
Restart policy | Description
10
10
- | -
11
11
`Always` | Containers in the container group are always restarted. This is the **default** setting applied when no restart policy is specified at container creation.
12
12
`Never` | Containers in the container group are never restarted. The containers run at most once.
@@ -26,4 +26,4 @@ az container create \
26
26
27
27
## Run to completion
28
28
29
-
Azure Container Instances starts the container, and then stops it when its application, or script, exits. When Azure Container Instances stops a container whose restart policy is `Never` or `OnFailure`, the container's status is set to **Terminated**.
29
+
Azure Container Instances starts the container, and then stops it when its application, or script, exits. When Azure Container Instances stops a container whose restart policy is `Never` or `OnFailure`, the container's status is set to **Terminated**.
0 commit comments