BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeMicrosoft Azure Administrator (AZ-104)Cram sheet — Configure secure access to virtual networks
Topic Cram Sheet479 words

Cram sheet — Configure secure access to virtual networks

AZ-104 › Unit 4 › Configure secure access to virtual networks

Cram sheet — Configure secure access to virtual networks

Configure secure access to virtual networks

Node
AZ104-U4.T2
Objectives
5
Bank questions
27
Grounded documents
5

Security groups have an evaluation order worth knowing exactly, and the two ways of reaching a platform service privately are routinely offered as though they were interchangeable. They are not.

How a network security group decides

  • Priority is a number between 100 and 4096, and lower numbers are processed first. Once traffic matches a rule, processing stops — later rules with the same attributes never run.
  • Azure's default rules sit at the lowest priority (highest number) precisely so your custom rules are always evaluated first. AllowVNetInBound is at 65000.
  • ⚠ You cannot remove the default rules. You can only override them with a higher-priority rule.
  • You cannot create two rules with the same priority and direction.
  • ⚠ A security group is stateful. A flow record is kept for existing connections, so allowing outbound on a port means the response comes back without a matching inbound rule, and vice versa. Adding the return rule is the classic wrong answer.

Application security groups have one hard constraint

  • ⚠ Every network interface in an application security group must be in the same virtual network as the first interface added to it. You cannot add interfaces from different virtual networks to one group.
  • To deny traffic between resources in a network you must write an explicit deny, because the AllowVNetInBound default already permits all communication inside the virtual network.

Bastion

  • Connecting through Bastion means your VMs need no public IP address, no agent and no special client software.
  • Basic, Standard and Premium require a dedicated subnet named AzureBastionSubnet and a public IP address. Premium additionally supports a private-only deployment with no public IP, and the Developer SKU uses shared infrastructure and needs no virtual network at all.

Service endpoint or private endpoint — they do different things

Service endpointPrivate endpoint
What it changesThe source address of your trafficBrings the service into your network
The service getsNothing newA network interface with a private IP from your subnet
ScopeThe subnet you enable it onSame region and subscription as the virtual network
  • ⚠ With a service endpoint, traffic switches from public to private source addresses — and therefore existing service firewall rules written against your public IPs stop working. That break is the single most examined consequence in this topic.
  • A private endpoint's read-only network interface is created automatically for its lifetime, and its private IP does not change while the endpoint exists.

Stateful means you write one rule, not two

If a stem describes allowing traffic and an option adds the matching return rule, that option is wrong. The flow record handles the response. This appears often enough to be worth checking for on sight.

Traps

Where Unit 4 Topic 2 catches people

Adding a return rule to a stateful filter. Trying to delete a default rule instead of overriding it. Putting interfaces from two virtual networks into one application security group. Forgetting that enabling a service endpoint breaks public-IP firewall rules. Treating service and private endpoints as interchangeable. Deploying Bastion without the exactly-named AzureBastionSubnet.

Check yourself

Loading flashcards…

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
Network security groupse9cc8195539f
Application security groups682a8663225e
What is Azure Bastion?4dfbd29a9cb4
Virtual network service endpoints62733fb4a7e8
What is a private endpoint?9da2884d1925
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.

Cram check — Configure secure access to virtual networks

Card 1 of 6

Front of flashcard 1 of 6

Why does allowing outbound on a port not need a matching inbound rule?

medium

A network security group is stateful — a flow record for the existing connection permits the response.

az-104az104:unit:4cram

Cram check — Configure secure access to virtual networks

Card 1

Front

Why does allowing outbound on a port not need a matching inbound rule?

Back

A network security group is stateful — a flow record for the existing connection permits the response.

Card 2

Front

What is the priority range, and which end wins?

Back

100 to 4096, and LOWER numbers are processed first. Once traffic matches, processing stops.

Card 3

Front

You enable a service endpoint. What breaks?

Back

Service firewall rules written against your public IPs — the source address switches from public to private.

Card 4

Front

What does a private endpoint put into your subnet?

Back

A read-only network interface with a private IP, created automatically and stable for the endpoint's lifetime. It must be in the same region and subscription as the VNet.

Card 5

Front

Which Bastion SKUs need a dedicated subnet and public IP?

Back

Basic, Standard and Premium — the subnet must be named AzureBastionSubnet. Premium can go private-only; Developer needs no VNet.

Card 6

Front

Can one application security group span two virtual networks?

Back

No. Every interface must be in the same virtual network as the first one added.

Cram check — Configure secure access to virtual networks

Card 1

Front

Why does allowing outbound on a port not need a matching inbound rule?

Back

A network security group is stateful — a flow record for the existing connection permits the response.

Card 2

Front

What is the priority range, and which end wins?

Back

100 to 4096, and LOWER numbers are processed first. Once traffic matches, processing stops.

Card 3

Front

You enable a service endpoint. What breaks?

Back

Service firewall rules written against your public IPs — the source address switches from public to private.

Card 4

Front

What does a private endpoint put into your subnet?

Back

A read-only network interface with a private IP, created automatically and stable for the endpoint's lifetime. It must be in the same region and subscription as the VNet.

Card 5

Front

Which Bastion SKUs need a dedicated subnet and public IP?

Back

Basic, Standard and Premium — the subnet must be named AzureBastionSubnet. Premium can go private-only; Developer needs no VNet.

Card 6

Front

Can one application security group span two virtual networks?

Back

No. Every interface must be in the same virtual network as the first one added.