All Projects → brandonh-msft → Azure-Functions-KeyVault-Binding

brandonh-msft / Azure-Functions-KeyVault-Binding

Licence: other
A binding for Azure Functions to make working with Azure KeyVault easier.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Azure-Functions-KeyVault-Binding

azure-sql-db-change-stream-debezium
SQL Server Change Stream sample using Debezium
Stars: ✭ 74 (+184.62%)
Mutual labels:  azure-functions
azure-functions-ts-essentials
Essential interfaces and tools for backend development on Azure Functions with TypeScript
Stars: ✭ 21 (-19.23%)
Mutual labels:  azure-functions
key-vault-dotnet-core-quickstart
This repo shows how to get started in DotNet Core with Azure Key Vault
Stars: ✭ 40 (+53.85%)
Mutual labels:  keyvault
sshizzle
Serverless, Zero-Trust SSH for Microsoft Azure
Stars: ✭ 62 (+138.46%)
Mutual labels:  azure-functions
QueueBatch
WebJobs/Azure Functions trigger providing batches of Azure Storage Queues messages directly to your function
Stars: ✭ 40 (+53.85%)
Mutual labels:  azure-functions
azure-functions-language-worker-protobuf
Protobuf definitions for the gRPC connections between the script host and the language workers
Stars: ✭ 27 (+3.85%)
Mutual labels:  azure-functions
Fritz.HatCollection
A static website that displays a collection of Fritz's Hats
Stars: ✭ 21 (-19.23%)
Mutual labels:  azure-functions
AspNetCore.Client
On Build client generator for asp.net core projects
Stars: ✭ 14 (-46.15%)
Mutual labels:  azure-functions
functions-extension-101
Learn how to create your own Azure Functions extension in 5 steps
Stars: ✭ 35 (+34.62%)
Mutual labels:  azure-functions
az-func-as-a-graph
Visualizes your Azure Functions project in form of a graph
Stars: ✭ 40 (+53.85%)
Mutual labels:  azure-functions
shorty
URL shortener available as library, microservice (even containerized), aws lambda, and azure function
Stars: ✭ 31 (+19.23%)
Mutual labels:  azure-functions
powerbi-embed-v2
Power BI Embedded with Custom Controls PoC
Stars: ✭ 34 (+30.77%)
Mutual labels:  azure-functions
Scavenger
A virtual "scavenger hunt" game for mobile devices using Unity, Azure, and PlayFab
Stars: ✭ 19 (-26.92%)
Mutual labels:  azure-functions
clean-architecture-azure-cosmos-db
A starting point to build a web API to work with Azure Cosmos DB using .NET 5 and Azure Cosmos DB .NET SDK V3, based on Clean Architecture and repository design pattern. Partition key is also implemented through the repository pattern.
Stars: ✭ 277 (+965.38%)
Mutual labels:  azure-functions
azure-iiot-opc-vault-service
Azure Industrial IoT OPC Vault Service
Stars: ✭ 15 (-42.31%)
Mutual labels:  keyvault
OSCI
Open Source Contributor Index
Stars: ✭ 107 (+311.54%)
Mutual labels:  azure-functions
azure-maven-archetypes
Maven Archetypes for Microsoft Azure Services
Stars: ✭ 19 (-26.92%)
Mutual labels:  azure-functions
azure-developer-college
Repository for the Azure Developer College Workshop
Stars: ✭ 16 (-38.46%)
Mutual labels:  azure-functions
AzureFunctionExtensions
Set of Azure Function Extensions: Redis output and IDatabase resolving, HTTP calls, etc.
Stars: ✭ 32 (+23.08%)
Mutual labels:  azure-functions
AzureFunctionsSecurity
Azure Functions Security
Stars: ✭ 23 (-11.54%)
Mutual labels:  azure-functions

Build status

An Azure Functions (2.0) binding for KeyVault

  1. Create a new Azure Function instance in Azure

  2. Create a new KeyVault instance in Azure

  3. Ensure the Azure Function has 'Managed Service Identity' turned on

  4. Add the Azure Function (by resource name) to the Key Vault's Access Policy list with 'Secret | Get' permissions Fill out only the 'Select Principal' part, not the 'Authorized application' part of the form

    You can get more detail on setting this up by reading this blog post from Functions PM, Jeff Hollan.

  5. Use the KeyVault binding in your Azure Function by:

Adding the nuget package to your project

Install-Package BC3Technologies.Azure.Functions.Extensions.KeyVault -IncludePrerelease

Then referencing it in your Function definition

public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)]HttpRequest req, [KeyVaultSecret(@"MyKv", @"MySecretId")]string secretValue, ILogger log)

where MyKv and MySecretId are defined in your app settings like:

"MyKv": "kv23958612",
"MySecretId": "fooSecret"
  1. Run your function & you will see the secretValue parameter populated with the value from the MyKv Key Vault for the secret MySecretId
  • You can also use [KeyVaultSecret(@"MyKv", @"MySecretId")]**out** string myNewKeyValue to set the value of fooSecret in KeyVault
  • You can get a JsonWebKey for a Key Vault key by using [KeyVaultKey("kvresourcesetting","keynamesetting")]JsonWebKey myKey
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].