#!/bin/bash
set -euo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/finops-cron-common.sh"
start 'Azure daily'
rm -f -- "$(marker azure)"
rc=0
range azure.sponsorship.billing.daily || rc=1
# Reconcile even if Bronze partially failed.
run reconcile azure.sponsorship --apply || rc=1
if (( rc == 0 )); then touch "$(marker azure)"; fi
finish 'Azure daily' "$rc"
exit "$rc"
