How to use secrets from Keyvault in Azure Batch without them being exposed in the portal?

Rajput, Sai Srivastav 6 Reputation points
2021-10-18T12:20:40.223+00:00

141695-screenshot-2021-10-19-155806.pngI am trying to execute an Azure batch that accepts environment variables. Currently, I am able to execute the task by reading the keys from secrets and passing them to the task, the drawback here is that the keys are exposed in the Azure portal.

Is there a way where I can still have that value as a secret on the Portal? That is, can I pass the secrets directly to the task and the Task would fetch it from KeyVault.

An example here would be the AWS Batch, We can explicitly pass the secrets and the AWS batch would automatically fetch it from the Parameter Store.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.