Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Back Up Every Azure Logic App to Git, Automatically

Описание и применение

Планировщик Azure DevOps ежедневно создает резервную копию всех Logic Apps, API‑подключений и APIM‑инстансов в защищённый ветвь Git, обеспечивая неизменяемую историю и возможность отката любой версии.

Задача

Logic Apps edited only in the Azure portal lack history, undo for deletes, and a source of truth, making it hard to recover or audit changes.

Результат

A single scheduled pipeline creates a daily, tamper‑proof backup of all Logic Apps, API connections, and APIM instances in a locked Git branch, while a separate restore pipeline can revert any version safely.

Рабочий процесс

  • Schedule a pipeline to run daily on a Microsoft‑hosted agent.
  • Clone the backup branch from the repo.
  • Sign in with a Reader service connection and export all resources via ARM REST API or APIOps extractor.
  • Stage only the backup folders.
  • Commit and push only if changes are detected.
  • Use branch security to lock the backup branch and keep scripts on a separate tooling branch.
  • Trigger a second pipeline manually to restore from any backup commit, with defaults that prevent accidental production impact.

Доказательства

No history: when a workflow breaks after an edit, you can't see what it looked like yesterday.

Источник

A scheduled pipeline reads Azure and commits to a locked backup branch.

Источник

Use branch security instead (Repos → Branches → ⋯ → Branch security).

Источник

  • Дата записи: 2026-10-14T10:41:04.995Z