BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeMicrosoft Azure Administrator (AZ-104)Lab — Prove a security group is stateful
Build Lab190 words

Lab — Prove a security group is stateful

AZ-104 › Unit 4 › Lab

Lab — Prove a security group is stateful

Lab brief

Node
AZ104-U4.T2
Time
25 minutes
Creates
A virtual network, two subnets, a network security group and rules
Subscription
required
Difficulty
Core

The claim to make physical: you write one rule, not two. Allowing traffic one way is enough, because the flow record lets the response back — and the option that adds a return rule is the classic wrong answer.

These commands have not been run

There is no Azure subscription in the environment this lab was written in, so not one of these commands has been executed. The syntax is derived from Microsoft's own CLI documentation, and the elements this lab asserts are quoted from it at the bottom of the page — but the specific invocations, with these names in this order, are unrun. Read each command before you run it, and expect to adjust names and regions. Treat the teardown as part of the lab, not an optional extra.

Before you start

A subscription. Virtual networks, subnets and security groups are free to create; you are charged for what runs inside them, and this lab runs nothing.

Walkthrough

Prove a security group is stateful

  1. 1

    1. Create a virtual network with two subnets

    One address space, two subnets. Nothing is deployed into them — the whole lab is about the rules, and an empty subnet evaluates them just as well.

Did it teach you what it was meant to?

Multiple choice · MediumStateful evaluation

A web server must reach an update service on port 443 outbound. Which rule set does step 4 show is correct?

Multiple choice · MediumDefault rules and priority

Step 3 refused to delete a default rule. How do you stop the traffic a default rule allows?

What goes wrong

What goes wrong

Adding the return rule in step 4 and concluding the lab proved nothing. Writing a deny at a higher number than the default you meant to override, which never gets reached. Forgetting that an application security group cannot span virtual networks — every interface in one must sit in the same network as the first one added. And diagnosing a filter when the fault is a route: a packet that is never routed is never filtered.

Tear it down

Run this whether or not the lab worked. Everything above was chosen to cost approximately nothing, and leaving it in place is how approximately nothing becomes something.

Teardown

  1. 1

    Delete the resource group

    az group delete --name bb-lab-net, which takes the virtual network, the subnets and the security group with it.

Where these figures come from

Every figure above was read from the raw documentation below on the day this sheet was written. The sha1 is git hash-object over the bytes as fetched, so a doc that changes underneath this sheet can be detected rather than assumed.

Documentsha1
Create, change, or delete a network security group580ad3a25f30
Network security groupse9cc8195539f
Application security groups682a8663225e
Manage Azure resource groups by using Azure CLIa3840d837a3d
All Microsoft Azure Administrator (AZ-104) Study Resources

Related Notes

  • AZ-104 exam map391 words
  • Unit 1 roadmap — Manage Azure identities and governance358 words
  • Unit 1 capstone — Onboarding an acquired subsidiary810 words
  • Lab — A budget notifies and stops nothing166 words
  • Lab — Prove that inheritance only flows one way212 words
  • Lab — Tags do not inherit, and a lock is not a permission204 words
  • Lab — Watch a dynamic group fill itself in183 words
  • Cram sheet — Manage access to Azure resources447 words
  • Cram sheet — Manage Azure subscriptions and governance841 words
  • Cram sheet — Manage Microsoft Entra users and groups580 words
  • Unit 2 roadmap — Implement and manage storage375 words
  • Unit 2 capstone — A media archive on a budget808 words

Ready to study Microsoft Azure Administrator (AZ-104)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Microsoft Azure Administrator (AZ-104)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Microsoft Azure Administrator (AZ-104) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.