↓ Skip to main content
Stein-Erik Alvestad

Stein-Erik Alvestad · Identity | Security | CISSP

Field notes on identity, security & the Microsoft cloud.

Practical insights on cloud, identity and cybersecurity. Real-world lessons on zero trust, modern work and securing the digital workplace.

22 min read

Agent 365: the sponsor left, the approval stayed

When an agent’s sponsor leaves, what happens to the agent’s approval? I tested it: nothing. In the last post, the approval lived in a custom security attribute, and I promised to automate taking it back. So I made three sponsors leave my lab tenant in three different ways and watched what Entra did to their agents. Without a workflow Entra didn’t move the sponsors, and in no case did it touch the approval. Microsoft’s own leaver template canceled the transfer for an agent with one sponsor, and when the transfer did work, the manager quietly inherited an approval they never made. Here’s what I saw, and the revoke design that came out of it.

6 min read

The NSM GP-IKT 2.1 pack for Maester is released

The Maester pack from my NSM post is now a free community pack on Maester Packs. Version 0.3.0 has 28 read-only tests for Entra ID, Microsoft 365, Defender and Intune, scored on NSM’s own scale, and every test now says which clause of which measure it proves. Here’s how to install it, what it needs, and what changed from the proof of concept.

15 min read

Agent 365: an approval lifecycle for agents in Entra Agent ID

Conditional Access for agents only has one grant: Block, so the pattern is an allow-list driven by a custom security attribute. Microsoft documents the mechanism. What I couldn’t find was the lifecycle around it: who moves an agent from New to IT_Approved, what takes it back, and how it relates to the other approvals and lifecycle features in Entra and Agent 365. Here’s the map I drew, the approval lifecycle behind the attribute, and how I built it in my lab.

26 min read

Measuring the NSM ICT Security Principles in Microsoft 365 with Maester

NSM raised Norway’s cyber risk level to HØYT. Here’s one way an organisation can turn NSM’s 118 measures into something it measures every week: Microsoft controls per platform, a Maester pack for Entra ID, Microsoft 365 and Intune, and a simple internal view on NSM’s own scale. For engineers who build it, and for the leaders, risk owners and auditors who have to answer for confidentiality, integrity and availability.

2 min read

Upgrade Packer JSON template to HCL2 for Azure Virtual Desktop

How to upgrade a Packer JSON template to the newer HCL2 format for building Azure Virtual Desktop images.

3 min read

Azure Virtual Desktop Published Application and Scaling issues with DPI

Solving DPI scaling problems with a published line-of-business application on Azure Virtual Desktop RemoteApp.