0
0
Azurecloud~5 mins

NSG rules (inbound, outbound) in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an NSG in Azure?
An NSG (Network Security Group) is like a security guard for your cloud network. It controls which traffic can come in (inbound) and go out (outbound) of your virtual machines or subnets.
Click to reveal answer
beginner
What does an inbound NSG rule do?
An inbound NSG rule controls the traffic coming into your resource. It decides if incoming data is allowed or blocked based on rules like IP address, port, and protocol.
Click to reveal answer
beginner
What does an outbound NSG rule do?
An outbound NSG rule controls the traffic leaving your resource. It decides if outgoing data is allowed or blocked based on rules like destination IP, port, and protocol.
Click to reveal answer
intermediate
What are the key parts of an NSG rule?
Each NSG rule has: a priority number (which rule runs first), direction (inbound or outbound), source and destination (IP or subnet), protocol (TCP, UDP, or Any), port range, and action (allow or deny).
Click to reveal answer
intermediate
Why is rule priority important in NSG?
Rule priority decides which rule applies first. Lower numbers have higher priority. If a higher priority rule allows or denies traffic, later rules are ignored for that traffic.
Click to reveal answer
What does an inbound NSG rule control?
ATraffic inside a virtual machine
BTraffic leaving a resource
CTraffic between two Azure regions
DTraffic coming into a resource
Which part of an NSG rule decides the order of evaluation?
ASource IP
BPriority number
CProtocol type
DPort range
What action can an NSG rule take on traffic?
AAllow or Deny
BEncrypt or Decrypt
CRoute or Block
DLog or Ignore
Which protocol can you specify in an NSG rule?
AHTTP only
BFTP only
CTCP, UDP, or Any
DSMTP only
If two NSG rules conflict, which one applies?
AThe one with lower priority number
BThe one created last
CThe one with higher priority number
DBoth apply equally
Explain how inbound and outbound NSG rules work together to protect an Azure resource.
Think of inbound as the front door and outbound as the back door security.
You got /4 concepts.
    Describe the key components you need to set when creating an NSG rule.
    Imagine setting rules for who can enter or leave your house and how.
    You got /6 concepts.