Securely Storing and Passing Azure App Registration Credentials in an Azure Runbook

Subhash Kumar Mahato 160 Reputation points
2024-08-27T17:19:11.05+00:00

I am renewing the Azure App registration secret value every 365 days and storing it in Azure Key Vault. I have developed a PowerShell script that works fine when executed manually. However, I want to automate the script using an Azure Runbook.

I need help with the following queries:

  1. How can I securely store and pass the Azure App registration Client ID and Client Secret values into the script for authentication in an Azure Runbook?
  2. How can I allow the Runbook's IP address in the Key Vault so that only that Runbook can access the Key Vault?

Any suggestions would be appreciated. Thank you in advance.

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.
1,257 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,241 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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