GithubHelp home page GithubHelp logo

isabella232 / keyvault-rotation-storageaccountkey-powershell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/keyvault-rotation-storageaccountkey-powershell

0.0 0.0 0.0 42 KB

Function to rotate storage account keys stored in key vault as secret

License: MIT License

PowerShell 100.00%

keyvault-rotation-storageaccountkey-powershell's Introduction

KeyVault-Rotation-StorageAccountKey-PowerShell

Functions regenerate individual key (alternating key1 and key2) in Storage Account and add regenerated key to Key Vault as new version of the same secret.

Features

This project framework provides the following features:

  • Rotation function for storage account key triggered by Event Grid (AKVStorageRotation)

  • Rotation function for storage account key triggered by HTTP call (AKVStorageRotationHttp)

  • ARM template for function deployment

  • ARM template for adding storage account key to existing function

Getting Started

Installation

There are 3 ARM templates available

  • Initial Setup (Demo)- Creates Key Vault and Storage Account if needed. Existing Key Vault and Storage Account can be used instead
  • Rotation Azure Function - Setup - It creates and deploys function app and function code, creates necessary permissions, and Key Vault event subscription for Near Expiry Event for individual secret (secret name can be provided as parameter)
  • Add storage accounts for management to existing Azure Function - single function can be used for multiple storage accounts. This template adding new event subscription for secret and necessary permissions to access storage account

Demo

You can find all steps in tutorial below: Automate the rotation of a secret for resources that have two sets of authentication credentials

keyvault-rotation-storageaccountkey-powershell's People

Contributors

jlichwa avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.