Insights

Hosting a SaaS on Azure South Africa North: moving the scheduled jobs next to the app

Shop Simply runs on Azure South Africa North. Why its scheduled jobs moved off GitHub Actions to Logic Apps, what failed on the way, and what held up.

Shop Simply gives South African small sellers an online shop, and it runs from Azure South Africa North. Hosting a SaaS on Azure South Africa North is mostly unremarkable, which is how it should be. This article is about the one part that was not: the scheduled jobs. For months they ran somewhere else, they failed for reasons that had nothing to do with the app, and in September 2026 the busiest of them moved into the same region and the same failure domain as the platform they serve.

It follows the shape: problem, approach, result and lesson.

The problem

A shop platform does a lot of work that nobody asked for at that moment. Orders that were never paid get cancelled and their stock returned. Custom domains get checked and their certificates provisioned. Trials expire. Billing jobs run overnight. On Shop Simply all of that is scheduled work, and all of it ran as GitHub Actions workflows that called internal routes on the app.

That arrangement is common and it works, until it does not. The jobs and the app sat in different failure domains: the app on Azure, the scheduler on GitHub. Anything that stopped GitHub Actions for this account stopped every scheduled job at once, while the storefront carried on serving shoppers as if nothing was wrong.

By then it had happened twice. The second time, overnight from 17 to 18 September 2026, no scheduled job ran for about 13 hours. Runs were created on schedule and then refused at job start, because of an account-level limit on GitHub Actions. GitHub’s status page showed Actions as normal throughout, because nothing was wrong with GitHub. The storefront and every internal endpoint answered normally the whole night.

It failed safe, in one sense: the jobs that switch merchants off were dead too, so nobody was wrongly cut off. It was not free. A card retry for merchants in their grace period, shipped the day before, was due to run for the first time that night and never did. Merchants who had been told in writing that it would run had to be told that it had not.

The watchdog that should have raised the alarm was itself a GitHub Action. Its silence looked exactly like health.

The approach

The decision was to move the scheduled jobs onto Azure, in the same region as the app, starting with the busiest.

First attempt: a Consumption Function App. The obvious home for timer jobs on Azure is Functions on the Consumption plan. It was deployed and rolled back within half an hour. Azure’s own timer-status records showed the last run still at the sentinel value 0001-01-01 while scheduled slots went past. Calling the same function by hand produced a valid run record within a second. The code was fine; the timers were not firing. For this workload a Consumption Function App was not a reliable cron host, and that was measured, not assumed.

What worked: Consumption Logic Apps. Each moved job became a small Logic App in South Africa North with three steps:

  1. A Recurrence trigger on the job’s schedule.
  2. Get the shared secret from Azure Key Vault, using the Logic App’s own managed identity.
  3. Send an HTTP POST to the same internal route the GitHub workflow used to call.
Each scheduled job is a Logic App in South Africa North. A Recurrence trigger starts it, it reads the shared secret from Key Vault with its managed identity, and it posts to an internal route on the app. A watchdog Logic App raises an alarm when a job misses two of its slots.Recurrence triggerLogic App, South Africa NorthGet the shared secretKey Vault, via managed identityHTTP POST to the internal routesame route the old workflow calledretryPolicy: noneThe app records the runsame failure domain as the appWatchdog checks every jobevery 5 minutes, on a Logic Apptwo missed slots = silent = alarm
The scheduler, the secret and the app now fail together, and silence raises an alarm.

Three details mattered more than the choice of service.

  • No automatic retries. Both of the first jobs to move are unsafe to run twice, so their Logic Apps have retryPolicy: none. A failed run raises an alarm; it does not repeat.
  • The secret is not in the definition. Anyone with Reader access to the resource group can read a Logic App’s definition, so the secret is fetched from Key Vault at run time instead of being pasted in.
  • Never two invokers at once. If the GitHub workflow and the Logic App both ran the job that releases stock, stock would be released twice and a merchant could oversell. The rollback is two written commands with that warning on top, and a repository check now refuses any job declared as moved to Azure that still has a scheduled GitHub workflow.

Then the watchdog moved too. It now runs on a Logic App every five minutes, and it gained a state it never had: silent. A job that misses two of its own slots raises an alarm straight away, instead of waiting hours to look late. A job that has never run can alarm too, without false alarms on its first deploy.

The result

The two busiest jobs, cancelling expired orders and provisioning domains, moved on 18 September 2026. Between them they make 192 of the platform’s 214 daily scheduled runs. On the first full night the Logic Apps made 93 runs with no failures, and their timestamps agreed with the app’s own run records to within two seconds.

The moved jobs now share the app’s failure domain. If the region has a bad night, the jobs stop and so does the storefront, which is the honest outcome: there is nothing for the jobs to do. For those jobs, what can no longer happen is the platform serving shoppers all night while its background work is dead.

Cost was not the reason in the end. The move was first proposed as a saving, and that saving was estimated, never measured against an invoice. The argument that carried it was availability.

The lessons

Put scheduled work in the same failure domain as the app it serves. A scheduler that can fail on its own is an availability risk, not a convenience.

An instrument hosted by the thing it watches is not a second opinion. The watchdog ran on GitHub Actions and watched GitHub Actions jobs. When Actions stopped, so did the watchdog. Three confirmations from the same platform are one signal seen three times.

Silence is an alarm. A job that should have run and did not is a fault. Monitoring that only reacts to errors will report a dead scheduler as a quiet night.

Measure the host, not the brochure. The Function App looked right on paper. Its own timer records showed it was not running. Half an hour against real schedules settled what reading documentation could not.

A note on data residency

Data residency comes up whenever Azure South Africa North does, usually with POPIA in the same sentence. POPIA does not require personal information to stay in South Africa; section 72 sets the conditions for sending it across the border. What a region gives you is a short, checkable answer to the question “where does this run?” That answer is only short if every moving part, the scheduler included, is where you say it is. Choosing the region is the easy half; keeping every component in it is the work.

If you are planning to host on Azure South Africa North, or want to know how your own scheduled work fails, that is Azure and cloud work. The wider story of the platform is in building Shop Simply, and the way Tech Mage builds with agents is in how Prubex went from spec to paid launch.

Andre Trollip, head and shoulders, smiling, against a plain light wall

Founder

Andre Trollip

Principal Engineer and Founder, Tech Mage

Andre Trollip is the principal engineer and founder of Tech Mage. He has shipped software for about 25 years, across life insurance, fintech, logistics and FMCG. You work with him directly, with trusted specialists when the work needs them.

Want this kind of check on your own system?

Send an enquiry with what the system does and what worries you about it. We usually reply within one business day.