Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sync-env-var

Sync Azure App Service app settings and connection strings from a source app A to a target app B. Merge semantics: keys in A are added/updated in B; keys only in B are never deleted.

Prerequisites

  • Python 3.11+
  • Azure CLI (az) installed and logged in (az login)

Install

pip install -e .

Usage

  1. Copy sync.example.yaml to sync.yaml and edit it.

  2. Dry-run (prints a masked diff, writes nothing):

    sync-env-var --config sync.yaml
    
  3. Apply (prompts for confirmation, then writes to B):

    sync-env-var --config sync.yaml --apply
    

Flags

Flag Effect
--apply Write changes to the target.
--yes Skip the confirmation prompt (for CI).
--show-values Reveal masked values in the diff.
--settings-only Sync app settings only.
--connstrings-only Sync connection strings only.

Secret values are masked in output by default. Key Vault references are copied as literal strings and continue to resolve in the target.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages