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.
Everything works fine if I pass it as "value" instead of "securevalue".
PFB my arm template:
Kindly let me know if this is a platform issue or is there a specific way of accessing secure environment variables?
Thanks & Regards,
Pratik
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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...
Fix has been deployed to all prod regions.