Azure Architecture for Data Teams
Lesson opener
In one line: An Azure subscription is a billing and access boundary. A resource group is a basket of resources you create and delete together.
Why it matters: Northline's first cloud bill mixes a personal experiment with the stock lake. Nobody can say which team may delete the storage account. The analytics lead and the ERP lead both click Owner. Figures in this course are illustrative.
Before this lesson: You can label IaaS, PaaS, and SaaS, and you can name a system of record.
What you will be able to do
- Place management groups, subscriptions, resource groups, and resources in order.
- Separate a billing boundary from a lifecycle basket.
- Say what a virtual network and a private endpoint are for, without claiming every service must use one.
- Use tags and policy as labels and rules, not as a substitute for access control.
Prerequisites
Lesson 1. An Azure account is useful later. This lesson is a naming exercise you can do on paper.
How Azure groups things
Microsoft's resource organization runs from broad to narrow (https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-setup-guide/organize-resources).
- A management group holds subscriptions so one rule can apply above a single bill.
- A subscription is where resources are billed and where a quota lives.
- A resource group holds resources that share a lifecycle. Deleting the group deletes those resources.
- A resource is one thing you create: a storage account, a factory, a workspace.
A region is a geography where the resource runs. Putting the lake in one region and the warehouse in another is a design choice about latency and failure, not a default.
A virtual network is the private network you control. A private endpoint gives a platform service a private address on that network when the design must keep traffic off the public address (https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview). It is not automatic, and it is not required for every tutorial account.
Azure Policy evaluates rules at a scope, such as "a storage account in this subscription must use a named region" (https://learn.microsoft.com/en-us/azure/governance/policy/overview). A policy deny is not the same as a person's role. Tags are labels for cost and ownership. A tag does not block a delete.
def scope_chain(resource):
return ["management group", "subscription", "resource group", resource]
def may_share_lifecycle(same_group):
return same_group is True
assert scope_chain("storage")[2] == "resource group"
assert may_share_lifecycle(True) is True
assert may_share_lifecycle(False) is FalseTeacher walkthrough: two baskets, one subscription
All figures are illustrative.
Northline will bill analytics and experiments on one subscription at first. They still need two resource groups.
rg-nl-analyticsholds the stock lake and the factory that fills it.rg-nl-sandboxholds a person's trial workspace. Deleting the sandbox must not delete the lake.- Tag both with
owner=analyticsandcost-center=CC-14. The tag explains the bill. It does not grant Owner. - Validation: the storage account's resource group is
rg-nl-analytics. A delete drill on the sandbox list does not include that account.
A second workplace case
The ERP team wants the integration factory in their group because they own the source. Analytics wants it in the analytics group because they own the schedule. The factory is one resource. It has one resource group. The compromise is a written owner plus access for the other team, not two copies of the factory.
Failure example: the experiment deletes the lake
Symptom: A Friday cleanup script deletes rg-shared. Monday's stock file is gone. The script was meant to remove a notebook trial.
Diagnosis: The trial and the lake shared a resource group, so they shared a lifecycle. Tags were present and were not a lock.
Correction: Move the trial to rg-nl-sandbox before the next cleanup. Keep production storage in rg-nl-analytics. Add a resource lock on that group if the platform team uses locks. A lock is a control you turn on. It is not created by a tag.
Validation: List resources in rg-nl-sandbox. The production storage account is absent. Delete a named trial resource and confirm the lake still lists Monday's file.
Guided practice: draw the four levels
Scenario: Northline has one company, two bills (retail and wholesale), and a stock lake that must survive a sandbox cleanup. Figures are illustrative.
Hints:
- Which level is the bill?
- Which level is safe to delete on Friday?
- Where does the lake sit?
Complete solution:
One management group can sit above both subscriptions if a company rule must cover both bills. Retail and wholesale are two subscriptions if they are separate bills. The stock lake sits in a resource group that the Friday job does not delete. The sandbox is a different resource group in whichever subscription is paying for experiments. Tags name the owner and the cost center. Policy can restrict the region. Neither tags nor the region choice grants permission to delete.
Independent practice
Sketch your own four levels for one real workload.
Acceptance criteria:
- You name the subscription as the bill, even if you only have one.
- You name a resource group whose deletion would be an incident, and one whose deletion would not.
- You name the region as a choice, not as "Azure."
- You say whether a private endpoint is required by a written network rule, or not yet.
- You do not use a tag as the only control against deletion.
Common mistakes
- Treating a resource group as a security boundary by itself. Access is granted at a scope. The group is also a delete basket.
- One resource group named
productionfor every service the company owns. - Assuming a private endpoint exists because the architecture slide drew a dotted line.
- Inventing a mandatory global naming standard. Use a convention your team can read. This course's
rg-nl-prefix is illustrative.
Quick check
- Which object is the billing boundary in this lesson?
- What happens to resources when you delete their resource group?
- Does a tag stop a deletion?
- What is a private endpoint for?
- Why were two resource groups safer than one shared group?
Answers:
- The subscription.
- Those resources are deleted with the group.
- No. A tag is a label.
- A private address on your virtual network for a platform service, when the design requires it.
- The sandbox could be deleted without taking the lake with it.
Quiz alignment
The quiz asks you to order the scope chain, to keep lifecycle separate from tags, and to describe a private endpoint without making it mandatory for every resource.
Lesson summary
Management group, subscription, resource group, resource. The subscription bills. The resource group dies together. Tags explain. Policy constrains. Private endpoints are a network choice you turn on. Put experiments in a basket you can throw away.
Bridge to the next lesson
The next lesson builds the stock lake: blob containers, the hierarchical namespace, folders, lifecycle rules, and who may read a directory. Bring the resource group name you refused to share with the sandbox.