This repo uses Azure Functions local settings and Azure credentials. Do not commit secrets.
- Keep
local.settings.jsonout of source control. - Use environment-specific copies like
local.settings.dev.jsonand keep them ignored. - Prefer local user secrets or environment variables when possible.
- Copy the template below to
local.settings.json. - Fill in values from your local environment or Key Vault.
- Never commit
local.settings.jsonor.envfiles.
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "node",
"FUNCTIONS_EXTENSION_VERSION": "~4",
"WEBSITE_RUN_FROM_PACKAGE": "1",
"AZURE_CLIENT_ID": "<client-id>",
"AZURE_CLIENT_SECRET": "<client-secret>",
"AZURE_TENANT_ID": "<tenant-id>"
}
}You can set the same values in your shell instead of a file:
$env:AZURE_CLIENT_ID = "<client-id>"
$env:AZURE_CLIENT_SECRET = "<client-secret>"
$env:AZURE_TENANT_ID = "<tenant-id>"