Seeking Tools or Scripts for Bulk Operations in Azure Key Vault

Subhash Kumar Mahato 225 Reputation points
2024-05-23T15:50:52.9633333+00:00

Hello,

I am looking to utilize Azure Key Vault for storing our organization's secret data. Specifically, I need to perform bulk operations such as creating multiple key vaults, adding multiple secrets, and assigning permissions in an efficient manner. I understand that the Azure Key Vault PowerShell module can be used to create scripts for these tasks.

My question is, are there any existing tools or pre-built scripts available that can facilitate these bulk operations? Any recommendations or guidance on how to achieve this would be greatly appreciated.

Thank you!

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,328 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,418 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,926 Reputation points Microsoft Employee
    2024-05-25T00:27:33.3533333+00:00

    Hi @Subhash Kumar Mahato ,

    There is an official ARM Template for creating a Key Vault and a list of multiple secrets: https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.keyvault/key-vault-secret-create

    There are some existing examples online using for loops in bash combined with Azure CLI, like this one and this one.

    There aren't too many "official" examples apart from the ARM one I shared, but there are a lot of custom solutions shared online.

    Azure CLI command reference: https://learn.microsoft.com/en-us/cli/azure/keyvault/secret?view=azure-cli-latest

    PowerShell: https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-powershell

    Let me know if this helps and if you have further questions.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.

    0 comments No comments

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.