AZ-204 Quiz

Containers

Question:

You have deployed a container using the following YAML configuration:

apiVersion: 2018-10-01
location: eastus
name: securetest
properties:
  containers:
    - name: mycontainer
      properties:
        environmentVariables:
          - name: 'EXPOSED'
            value: 'my-exposed-value'
          - name: 'SECRET'
            secureValue: 'my-secret-value'
  osType: Linux
  restartPolicy: Always
tags: null
type: Microsoft.ContainerInstance/containerGroups


You want to retrieve the value of the environment variable "SECRET" using the Azure CLI and execute the following command:

az container show --resource-group myResourceGroup --name securetest --query "properties.containers[0].properties.environmentVariables[?name=='SECRET']"


What should you expect from this command?

Report a problem
Exam revision: April 11, 2025