What is secureValue property in ARM template for Azure Container Instance deployment good for?

Experience Level: Junior
Tags: Azure CloudAzure Container InstancesAzure Security Center

Answer

Using secureValue property you can define an environment variable that will be accessible from within the container, but its value won't be displayed in Azure Portal.

Example of the yaml:

apiVersion: 2019-12-01 location: eastus name: securetest properties: containers: - name: mycontainer properties: environmentVariables: - name: 'NOTSECRET' value: 'my-exposed-value' - name: 'SECRET' secureValue: 'my-secret-value' image: nginx ports: [] resources: requests: cpu: 1.0 memoryInGB: 1.5 osType: Linux restartPolicy: Always tags: null type: Microsoft.ContainerInstance/containerGroups

Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Container Instances
Azure Container Instances

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-500 Microsoft Azure Security Technologies Preparation
AZ-500 Microsoft Azure Security Technologies Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself