Azure Data Residency for Australian Compliance Apps
A practical architecture for keeping an Australian compliance app's data in Australia on Azure, including the services that quietly move data elsewhere.
When an Australian accounting or compliance client asks "where is our data stored?", they want a precise answer. Planning Azure data residency Australia-first is one of the cleanest ways to give it, because a single region can host the app, the database, the documents and the outbound email.
I built an audit portal for an Australian accounting firm with all data hosted in Azure Australia East. This post explains the architecture, the services that tend to leak data offshore, and how to document residency so clients and auditors are satisfied. It is an engineering guide, not legal advice.
TL;DR
Put every service that stores or processes customer data in one Australian region, usually Australia East. That means compute, database, file storage, email, backups and logs. Then audit your third-party tools, keep production data out of CI/CD, and write a short data map that shows where each data category lives.
key takeaways
- Data residency is an architecture decision across every service, not a single region dropdown on the web app.
- Azure Australia East can host the app, database, file storage and email together, which keeps the data path simple to explain to auditors.
- Third-party tools for logging, error tracking, email and AI are the usual places data quietly leaves the country.
- Document where every category of data lives and travels, because clients will ask and a one-page data map answers most questions.
Why residency matters for Australian compliance apps
Accounting, legal and financial services firms in Australia handle trust account records, bank statements, client identities and tax data. Their own clients and regulators expect that data to be handled carefully, and many firms prefer or contractually require that it stays onshore.
The Australian Privacy Principles include rules about disclosing personal information overseas (APP 8), and staying onshore simplifies that conversation considerably. Beyond the law, residency is a sales question. A firm evaluating a portal will ask where data lives, who can access it and how long it is kept. A clear answer shortens procurement.
A reference architecture on Azure Australia East
This is the layout I use for a compliance-grade web app. Microsoft's Azure geographies documentation explains region pairs and service availability.
| Layer | Azure service | Residency notes |
|---|---|---|
| Web and API | Azure App Service | Deploy to Australia East; scale up or out within the region |
| Database | Azure Database for PostgreSQL (Flexible Server) | Same region; automated backups stay in the region or its Australian pair |
| Documents | Azure Blob Storage | Private containers, short-lived SAS URLs for downloads |
| Transactional email | Azure Communication Services Email | Choose Australia as the data location when creating the resource |
| Secrets | Azure Key Vault or App Service settings | Region-scoped, never in the repo |
| CI/CD | GitHub Actions | Moves code and build artifacts only, never production data |
Two principles make this work. First, colocate everything so data never crosses a region boundary during normal operation. Second, keep every storage resource private and hand out access only through the application, which enforces permissions.
Services that quietly move data offshore
The core stack is easy. The risk lives in the extras teams add later.
- Error tracking and logging. Exceptions often include request bodies, emails and IDs. Choose a provider region carefully or scrub payloads before sending.
- Email providers. A third-party email API may store message content and logs in another country. Azure Communication Services with an Australian data location avoids that.
- AI features. Sending documents to a model API can process data offshore. Use a regional deployment or keep AI features off sensitive records.
- Analytics and session replay. These can capture form inputs. Mask fields or skip them in authenticated areas.
- Support tools. Screenshots and exports pasted into a ticketing system are still customer data.
- Developer laptops. Production dumps on a laptop break residency instantly. Use anonymized seed data for development.
Controls that go with residency
Residency answers "where". Auditors will also ask "who" and "how".
- Strong sign-in: password, then email OTP, with optional TOTP authenticator apps for staff.
- Token handling: short-lived access tokens kept in memory, refresh tokens in httpOnly cookies, so a script cannot read them.
- Role separation: different portals or roles for external users and internal reviewers.
- Signed file URLs: SAS links that expire in minutes, generated only after a permission check.
- Audit trails: record who viewed, verified, rejected or downloaded what, and when.
- Retention: decide how long engagement data stays after the job ends and automate deletion.
Writing the data map
A one-page data map answers most procurement questions. For each data category (user accounts, uploaded documents, bank and ledger lines, reports, emails, logs), list the service it lives in, the region, who can access it, and the retention period. Keep it in the repo next to the infrastructure code and update it when services change.
How I built this in practice
The audit portal case study covers a solo build for an Australian accounting firm that audits estate agents' trust accounts. Agents upload preliminary and per-property documents, auditors verify, reject or raise queries, sample around 5 percent of properties, run a data-driven audit programme, reconcile trust accounts from CSV and XLSX imports, and release the final report and audit pack.
All of it is hosted in Azure Australia East: Azure App Service for the app, Azure PostgreSQL through Prisma for roughly 31 models, Azure Blob Storage for documents with time-limited signed URLs, and Azure Communication Email for notifications and OTPs. GitHub Actions handles CI/CD and only ever touches code.
Sign-in is password, then email OTP, then optional TOTP, with short-lived access tokens in memory and httpOnly refresh cookies. Real-time query threads between agents and auditors run over Socket.IO inside the same App Service, so even the chat traffic stays in the region.
Common mistakes
- Choosing Australia East for the web app but leaving storage or email in a default US region.
- Making blob containers public "just for the logo" and later reusing them for documents.
- Sending full request payloads, including client data, to an offshore error tracker.
- Copying production databases to developer machines or staging in another region.
- Using long-lived or permanent file links that keep working after access is revoked.
- Having no written data map when the client's compliance team asks for one.
keep reading
FAQ
Which Azure region should I use for Australian data residency?+
Australia East (Sydney) is the most common primary region and has the widest service availability. Australia Southeast (Melbourne) is a typical pair for backups or disaster recovery when both copies must stay onshore.
Does hosting on Azure in Australia make my app compliant?+
No. Hosting onshore helps with residency requirements and client expectations, but compliance also depends on access control, retention, audit trails and your contracts. Get legal advice for your specific obligations.
Can I use Azure DevOps or GitHub Actions and still keep data in Australia?+
Yes, as long as CI/CD handles code and build artifacts, not production data. Keep database dumps, customer files and real records out of pipelines and logs.
How do I share files securely from Azure Blob Storage?+
Keep containers private and generate short-lived SAS URLs on the server after checking the user's permission. The link expires quickly, so a forwarded URL stops working.
Devang Gandhi
AI & full stack developer at Passdn, building CRMs, SaaS, AI agents and Flutter apps for clients in the US, UK, Australia, UAE and India. More about me