Azure-docs: Issue while passing Environment variable as secret as discussed in https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template?tabs=CLI

Created on 2 May 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi Team,

I am currently trying to pass a secret value using environment variable property for Microsoft.Resources/deploymentscripts as mentioned in the docs at https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template?tabs=CLI

But this leads to the value being blank and cannot access it in the container instance create by runtimePowerShell resource. PFB the screenshots.

Capture1
Capture2

Everything works fine if I pass it as "value" instead of "securevalue".

PFB my arm template:

azuredeploy.txt

Kindly let me know if this is a platform issue or is there a specific way of accessing secure environment variables?

Thanks & Regards,
Pratik


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri3 azure-resource-managesvc cxp product-question templatesubsvc triaged

All 7 comments

@pratiksharma-dev
Thanks for your Question! We are currently investigating and will get back on this.

@VikasPullagura-MSFT
Have created a support ticket for this as well (SR #120050223000279 | Issue with secret value for Environment variables). If you need any info you can reach me out at prashar@microsoft.com

We are investigating the issue. Will report back when we have more information on what is happening. Thanks for reporting.

A fix has been checked in and being deployed. Will update once the deployment is done.

@lwang2016 Great news!! Thanks, let me know once it is patched...

please-close

Fix has been deployed to all prod regions.

Was this page helpful?
0 / 5 - 0 ratings