How do you allow Azure Automation Runbook to connect to the Azure Key Vault and rotate the keys of Azure Storage and store them to the Key Vault?

Experience Level: Junior
Tags: Azure Automation AccountsAzure CloudAzure Key Vault

Answer

  • Create an Automation account (if you don't have it yet)
  • Create a Run As account that will create a principal in Azure AD
  • Create Azure Key Vault access policy to allow a Runbook to access the Key Vault key (Run As account principal will be used)
  • Set RBAC roles on Storage account to allow a Runbook to access the Storage Account and rotate the key
  • Install the necessary modules in a Runbook (AzureRM.Storage, AzureRM.KeyVault)
  • Create a Powershell Runbook with PowerShell script that rotates the key on Storage account and stores it to the Key Vault
  • Install the necessary Powershell modules in Runbook 
Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Key Vault
Azure Key Vault

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

Test yourself
Azure Automation Accounts
Azure Automation Accounts

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