Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.14 KB

File metadata and controls

42 lines (32 loc) · 1.14 KB

Safe Local Setup

This repo uses Azure Functions local settings and Azure credentials. Do not commit secrets.

Local settings

  • Keep local.settings.json out of source control.
  • Use environment-specific copies like local.settings.dev.json and keep them ignored.
  • Prefer local user secrets or environment variables when possible.

Recommended workflow

  1. Copy the template below to local.settings.json.
  2. Fill in values from your local environment or Key Vault.
  3. Never commit local.settings.json or .env files.

Minimal local.settings.json template

{
  "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>"
  }
}

Optional: environment variables

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>"