As an Azure architect, I wanted to leverage Azure to host my Home Assistant backups. However, I discovered a lack of add-ons or integrations that seamlessly accomplished this task. A few years ago, I wrote my own solution to address this issue. Over time, it has evolved, now utilizing the lighter Azcopy CLI instead of the full Azure CLI. Recently, a kind contributor enhanced it by adding Service Principal authentication alongside the original SAS token authentication.

What it Does

This add-on eliminates the manual effort involved in backups by automating the process of copying Home Assistant snapshots to Azure. Its primary goal is to make the backup procedure seamless, ensuring that configurations and data are consistently and effortlessly backed up.

Getting Started

If you’re interested in trying out this add-on, you can find it on GitHub or simply add it to your Home Assistant instance with this link.

Feedback, Bugs, and Feature Requests

Feedback is always welcome! Please feel free to open an issue in the GitHub repository.

Sample Automation

Below is the automation that I use to create a backup and then trigger this add on

alias: Backups - Take Full Backup
description: ""
trigger:
  - platform: time
    at: "02:00:00"
condition:
  - condition: time
    weekday:
      - mon
      - sat
      - sun
    before: "12:00:00"
    after: "00:00:00"
action:
  - service: hassio.backup_full
    data:
      compressed: true
  - delay:
      hours: 0
      minutes: 15
      seconds: 0
      milliseconds: 0
  - service: hassio.addon_start
    data:
      addon: b03c22bd_azcopy
mode: single

Updated: