ACI YAML: value vs secureValue visibility
Short answer
Variable1 (value:) is visible both inside container1 as an environment variable and in the Azure container configuration. Variable2 (secureValue:) is visible only inside container1 as an environment variable; Azure does not expose it in the container properties.
Question
You have a file named File1.yaml that contains the following contents.

You create an Azure container instance named container1 by using File1.yaml.
You need to identify where you can access the values of Variable1 and Variable2.
What should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Key Takeaways
The exam tests whether you know that secureValue hides a value from the Azure management plane but still delivers it to the container, not that it removes it entirely.
For Azure Container Instances YAML, a plain value: environment variable such as Variable1 stays visible both inside the container and in the Azure container configuration, while secureValue: for Variable2 is injected only into the container and is withheld from the Azure-side properties.
Common mistake: Choosing that Variable2 is unavailable anywhere, or that it is equally visible to Variable1. secureValue still sets a readable environment variable inside container1 — only the Azure configuration/portal/API exposure is blocked.
Expert Analysis
The boundary being tested
This hotspot asks where the values of Variable1 and Variable2 remain visible after container1 is created from File1.yaml. The dividing line is the property used in the YAML: value: versus secureValue:. That single field decides whether Azure retains the plaintext in the container resource object.
Variable1 (value: 'Value1')
A plain value is an ordinary environment variable. Azure stores it as part of the container group's environment property, so it is readable in the portal, CLI, REST API, ARM/Bicep template output, and deployment history. It is also readable inside the container as an environment variable. Nothing redacts it.
Variable2 (secureValue: 'Value2')
secureValue marks the environment variable as secret. At provisioning Azure keeps it only for injection into the running container; the value is not returned in the container group's properties, not shown in the portal, and not recoverable from the API or deployment outputs. A learner comment notes exactly this: "Azure no expone el valor en las propiedades del contenedor después de configurarlo, pero dentro de container1 está disponible como variable de entorno."
The correct selections
Variable1: visible both inside container1 (as an environment variable) and in the Azure container configuration (portal/API properties).Variable2: visible only inside container1 (as an environment variable); it is not exposed in the Azure configuration.
Why the trap works
Test-takers assume secureValue behaves like Key Vault secret injection, where the value is never present at all. It is not — the value is injected into the process environment; it is simply withheld from the management plane. Also remember secureValue provides no encryption at rest beyond the platform's standard protection; for real secrets the recommended pattern is Key Vault references, which never place the secret in the template.
Exam Strategy
In ACI YAML hotspots, scan each environment variable for the keyword before its value: value: means fully visible everywhere, secureValue: means visible only inside the container. Answer the two selections independently — one variable rarely shares the other's exposure. If a choice mentions portal, API, or Azure configuration for a secureValue entry, it is wrong; if it denies access from inside the container, it is also wrong.
Frequently Asked Questions
Can I read Variable2's value from the portal or az container show after deployment?
Does secureValue encrypt or protect Variable2 inside container1?
What is the secure alternative to putting a real secret in File1.yaml?
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
M15tin 👍 1En File1.yaml: Variable1 usa value: 'Value1'. Es una variable de entorno normal, por lo que su valor puede verse desde el contenedor y también en la configuración de Azure. Variable2 usa secureValue: 'Value2'. Es una variable de entorno segura. Azure no expone el valor en las propiedades del contenedor después de configurarlo, pero dentro de container1 está disponible como variable de entorno. Respuesta final: Variable Selección Variable1 Can be accessed from inside container1 and the Azure portal Variable2 Can be accessed from inside container1 only
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-500 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SC-500 Practice Test →