Securing an Azure Environment from the Ground Up

When people talk about Azure security, the conversation can quickly become a list of products.
Microsoft Defender for Cloud. Microsoft Sentinel. Key Vault. Conditional Access. Azure Policy.
All of those technologies matter.
But I don't think securing Azure should start with asking:
"Which security products should we enable?"
I think it should start with:
"What are we protecting, who should have access to it, and how do we prevent one compromise from becoming an environment-wide incident?"
When I think about Azure security architecture, I break it into seven areas:
Identity → Governance → Network → Workloads → Secrets & Data → Monitoring → Response
This is how I would approach securing an Azure environment from the ground up.
Note: This is a high-level security architecture approach. The exact controls would depend on the organisation's architecture, risk profile, regulatory requirements and existing Microsoft environment.
1. Start With Identity
For me, identity comes first.
In a cloud environment, an attacker doesn't necessarily need to break through a traditional network perimeter.
If they compromise an identity with enough permissions, they may already have what they need.
That's why my first questions would be:
Who has access?
What can they access?
Why do they need that level of access?
How is that access authenticated?
And:
Is the access permanent?
Microsoft Entra ID becomes central here.
MFA Should Be a Baseline
Privileged accounts especially should not depend on passwords alone.
Multi-factor authentication adds another layer between stolen credentials and successful access.
But MFA by itself isn't the entire identity strategy.
I would combine it with Conditional Access.
Conditional Access
Conditional Access allows organisations to make access decisions based on context.
Instead of simply:
Correct password = Access
we can consider:
Who is the user?
What application are they accessing?
Where are they connecting from?
What device are they using?
What is the sign-in risk?
Does the request meet our security requirements?
Then policies can require additional controls or block access.
For example, an organisation might require MFA for administrative access and restrict certain sensitive resources to compliant devices.
The exact policy depends on the business.
The important point is that authentication becomes context-aware.
Privileged Identity Management
One thing I would avoid wherever possible is giving administrators permanent high-level access.
If someone only needs privileged access occasionally, why should that permission remain active 24 hours a day?
That's where Privileged Identity Management (PIM) becomes valuable.
Instead of:
Hazel = Global Administrator permanently
the model can become:
Hazel = Eligible for privileged role
↓
Requests activation
↓
MFA / justification / approval if configured
↓
Temporary privileged access
↓
Access expires
This reduces standing privilege.
If the account is compromised while the privileged role isn't active, the attacker doesn't automatically inherit that privilege.
Apply Least Privilege
This sounds simple:
Give people only the permissions they need.
In practice, it's one of the most important security principles.
Imagine a service principal has Owner permissions at subscription level.
My first concern is the blast radius.
If that identity is compromised, the attacker could potentially have extensive control across resources and permissions within that subscription.
I would ask:
Why does this application need Owner?
Could it use Contributor?
Could it use a more specific built-in role?
Could we create a narrowly scoped custom role?
Could the permission be assigned only at resource-group or resource level?
The goal isn't to remove permissions blindly.
The goal is to give the identity exactly enough access to perform its function.
2. Establish Governance
Once identity is controlled, I want guardrails around how Azure resources are created and configured.
This is where Azure Policy becomes extremely useful.
I think of Azure Policy as:
Rules that help ensure Azure resources follow the organisation's standards.
For example, an organisation might require:
Approved Azure regions
Encryption requirements
Required resource tags
Diagnostic logging
Restrictions on public exposure
Approved resource configurations
Instead of relying entirely on administrators remembering every security requirement, some requirements can be evaluated and enforced through policy.
Management Groups, Subscriptions and Resource Groups
I would also look at how the Azure environment itself is organised.
A simplified hierarchy might look like:
Tenant
│
Management Groups
│
Subscriptions
│
Resource Groups
│
Resources
This structure matters because governance and access controls can be applied at different levels.
If I apply something too high in the hierarchy, I could affect far more resources than intended.
If I apply it too low, I might leave other resources unprotected.
Good cloud security requires understanding scope.
3. Secure the Network
Identity is extremely important in cloud security, but that doesn't mean network security disappears.
I would still ask:
Which systems actually need to communicate with each other?
Which resources need internet exposure?
Can management interfaces be private?
Are unnecessary ports open?
How is traffic inspected and logged?
Network Security Groups can help control traffic at the network level.
Depending on the architecture, additional controls might include:
Azure Firewall
Web Application Firewall
Private Endpoints
Network segmentation
DDoS protection
Secure administrative access
One principle I would keep coming back to is:
Don't expose something publicly simply because it's easier.
4. Protect the Workloads
Next I would look at what is actually running inside Azure.
This might include:
Virtual machines
Containers
Databases
App Services
Storage
APIs
Kubernetes environments
Other cloud workloads
This is where Microsoft Defender for Cloud becomes particularly relevant.
I would use cloud security posture information to identify weaknesses such as insecure configurations, missing protections and vulnerabilities that increase risk.
But I wouldn't treat every recommendation equally.
A security team can have hundreds of recommendations.
The real question is:
Which weaknesses create the greatest risk to this environment?
A publicly exposed vulnerable workload deserves different priority from a low-impact configuration issue on an isolated development resource.
Risk needs context.
5. Protect Secrets and Data
Applications need credentials too.
They may need:
API keys
Certificates
Database credentials
Encryption keys
Application secrets
I don't want those values sitting inside source code or configuration files where they can easily be exposed.
That's where Azure Key Vault becomes important.
Instead of an application storing something like:
DatabasePassword = MySecretPassword123
inside its code, the secret can be securely stored and retrieved through controlled access.
Managed Identity
Even better, sometimes the application doesn't need a stored credential at all.
This is where managed identities become useful.
Imagine an Azure application needs access to Key Vault.
Without managed identity, we might need to create an application identity and manage its credential.
With managed identity, Azure can manage the identity for the resource.
Conceptually:
Application
↓
Managed Identity
↓
Azure authentication
↓
Key Vault
Now I don't have a password sitting somewhere waiting to be stolen.
This is why, where appropriate, I prefer managed identities over manually managed service-principal credentials.
Protect the Data Itself
I would also consider:
Where is sensitive data stored?
Who can access it?
Is it encrypted?
Can it be accessed publicly?
How is access logged?
How is it backed up?
What happens if someone deletes or encrypts it?
Cloud security isn't just about preventing attackers from getting in.
It's also about limiting what happens if they do.
6. Monitoring and Detection
A secure architecture should assume that prevention will eventually fail somewhere.
That's why monitoring matters.
I want visibility into:
Authentication activity
Privileged actions
Resource changes
Security alerts
Network activity
Endpoint activity
Cloud workload activity
This is where tools such as Microsoft Defender XDR, Defender for Cloud and Microsoft Sentinel become part of the architecture.
Sentinel can bring together telemetry from Azure, Microsoft security products and other security technologies.
Then the SOC can detect, investigate and hunt across that information.
Logs Are a Security Control
One mistake organisations can make is enabling logging only after something goes wrong.
By then, the evidence they need may not exist.
Before an incident occurs, I want to know:
What logs do we collect?
Where do they go?
How long do we retain them?
Who can modify or delete them?
What detections depend on them?
Because during an incident, you cannot investigate telemetry that was never collected.
7. Prepare for Incident Response
Finally, I want to know what happens when something goes wrong.
Imagine a privileged Azure identity is compromised.
Who gets alerted?
Who has authority to disable it?
How do we revoke access?
How do we determine what resources were modified?
How do we preserve evidence?
How do we recover affected workloads?
How do we communicate the incident?
These questions shouldn't be answered for the first time during the attack.
This is why incident-response playbooks and tabletop exercises matter.
What If a Privileged Account Is Compromised?
Suppose an administrator account is compromised.
My investigation would need to determine:
How did the attacker authenticate?
↓
What permissions did the account have?
↓
Which Azure resources were accessed?
↓
What configuration changes were made?
↓
Were additional identities created?
↓
Were permissions modified?
↓
Were secrets accessed?
↓
Was data accessed or exfiltrated?
↓
Is persistence still present?
That is very different from simply resetting the password.
Again, the goal is understanding the blast radius.
Security Architecture Is About Layers
No individual Azure security control is enough.
MFA can fail.
Credentials can be stolen.
Applications can contain vulnerabilities.
Administrators can make mistakes.
Security controls can be misconfigured.
That's why I think about Azure security in layers.
IDENTITY
↓
GOVERNANCE
↓
NETWORK
↓
WORKLOADS
↓
SECRETS & DATA
↓
MONITORING
↓
RESPONSE
If one control fails, another layer should make it harder for the attacker to progress.
That is defence in depth.
The Bigger Lesson
The more I work in cybersecurity, the more I realise that senior security work isn't about knowing the name of every Microsoft product.
It's about understanding why and where a control belongs.
I don't want to say:
"Enable Key Vault because Key Vault is a security product."
I want to say:
"Applications shouldn't contain exposed credentials, so let's determine whether we can use managed identity and Key Vault to reduce credential exposure."
I don't want to say:
"Enable PIM because Microsoft recommends it."
I want to understand:
"Permanent administrative access increases the impact of an identity compromise, so let's reduce standing privilege."
That's the difference between deploying security products and designing security architecture.
When I look at an Azure environment, my question isn't simply:
"Which security tools are enabled?"
It's:
"If one control fails tomorrow, what stops the attacker from reaching everything else?"
That's the question I believe good cloud security architecture should answer.
About the author
- Hi, I’m Hazel — a cybersecurity professional focused on security operations, Microsoft security, cloud security, incident response and the evolving world of AI security. HazelSec is where I share practical insights from real-world security challenges, break down complex technologies and threats, and explore how we can build stronger, more resilient environments.
Comments
Join the discussionNo comments yet. Be the first to comment.



