AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

How can I use Secret Manager in Azure Function?

Open fabich opened this issue 6 years ago • 4 comments

Hi

Could you provide an example of how I can use Secret Manager in Azure Function on local development environment?

Thanks

Fabian


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

fabich avatar Jan 31 '20 07:01 fabich

Per the doc: This document explains techniques for storing and retrieving sensitive data during development of an ASP.NET Core app on a development machine.

Rick-Anderson avatar Jan 31 '20 07:01 Rick-Anderson

I would like to see this as well. Perhaps there's an equivalent Function doc that can be linked to.

markarnolditpro avatar Feb 25 '20 10:02 markarnolditpro

This article is highly lacking when it comes to Azure Functions. First of all, it is not clear what schema should be used in secrets.json file. For Azure Functions, local.settings.json (not appsettings.json!) has all the settings under Values section. Should secrets.json use Values section as well? The second issue, how to load user secrets at runtime? It is not obvious how to call AddUserSecrets functions. Besides, Azure Functions v.3 should load all standard locations by default. Still, no matter how I tried, I was unable to retrieve any setting from secrets.json.

MightyGuru avatar Apr 24 '20 17:04 MightyGuru

First sentence of article:

This document explains techniques for storing and retrieving sensitive data during development of an ASP.NET Core app on a development machine.

Rick-Anderson avatar Apr 24 '20 19:04 Rick-Anderson