Azure Lighthouse implementation
This guide covers the engineering steps behind the two ION Lighthouse offers: maintaining the Ontinue groups, onboarding a customer, updating the offers, validating access, and offboarding. Read the architecture first.
Maintain the managing-tenant groups
Maintain Lighthouse groups and PIM nesting
Owner: Ontinue identity team
The Lighthouse groups (lighthouse-ion-2023v1-* and the Defender for Cloud groups)
live in ontinue.com. Their object IDs are compiled into the offer templates, so
never delete or recreate a group that a deployed offer references.
- Do not add analysts directly. Create a nested group per access profile, make it a member of the corresponding Lighthouse group, and enable PIM for Groups on the nested group with eligible membership, approval where required, justification, and a maximum activation duration.
- Keep the nesting one level deep so effective membership is easy to review.
- Include the nested groups in the quarterly access review.
Add a workload managed identity to the automation group
Owner: Service owner, reviewed by platform security
A workload that needs Sentinel access uses its own user-assigned managed identity in
ontinue.com. Add it as a direct member of lighthouse-ion-2023v1-automation
through a reviewed infrastructure change that records the service, the operations it
performs, and the reason the automation role set is needed.
- One managed identity per workload. Do not share an identity across services to avoid touching the group.
- If the workload only reads, raise that in review: the automation group carries contributor roles, and a narrower offer group may be more appropriate.
- Remove the identity from the group when the workload is retired.
Prepare the customer
Confirm customer prerequisites
Owner: Cyber Advisor with customer administrator
The customer administrator runs the script interactively with device-code sign-in
(Connect-AzAccount and Connect-MgGraph).
Azure: Owner-level rights on the Sentinel subscription and on each subscription to enable for Defender for Cloud, plus rights to deploy and assign policy at the target management group.
Microsoft Graph delegated scopes requested by V1.3.1:
Policy.Read.All,Policy.ReadWrite.ConditionalAccess,Policy.ReadWrite.CrossTenantAccessEntitlementManagement.ReadWrite.AllDirectory.ReadWrite.All,Group.ReadWrite.All,User.ReadWrite.AllApplication.Read.All,Organization.Read.AllPrivilegedEligibilitySchedule.ReadWrite.AzureADGroup,PrivilegedAccess.ReadWrite.AzureADGroupRoleManagement.ReadWrite.Directory
Most of the Graph scopes serve the Access Package and Conditional Access parts of the script, not Lighthouse.
Inputs: customer tenant ID, Sentinel workspace name and resource group, subscription ID, location, and the management group for the Defender for Cloud policy.
Run the onboarding script
Run Customer Onboarding.ps1
Owner: Customer administrator, guided by Cyber Advisor
Run the V1.3.1 script with the inputs above. For Lighthouse it performs the steps below. Capture the transcript and attach it to the onboarding record.
Sentinel offer
Owner: Script
The script checks Get-AzManagedServicesDefinition. If no ION - Sentinel
definition exists, it runs New-AzSubscriptionDeployment with
ION - Lighthouse.json. The template creates the registration definition at
subscription scope and a nested deployment that assigns it to the workspace
resource group.
The registration definition name is guid(mspOfferName), so redeploying with the
same mspOfferName updates the same definition in place.
If the definition already exists, the script skips it.
Defender for Cloud offer per subscription
Owner: Script
For every enabled subscription except Access to Azure Active Directory:
- If ION - Defender For Cloud exists, run
Remove-AzManagedServicesAssignmentandRemove-AzManagedServicesDefinition, then sleep 10 seconds. - Deploy
ION - Defender For Cloud.jsonwithNew-AzSubscriptionDeployment.
Management-group policy for new subscriptions
Owner: Script
The script deploys the policy definition ION Defender For Cloud For All
Subscriptions with New-AzManagementGroupDeployment, using
ION - Defender for Cloud - Managment Group.json and its parameters file. It then
assigns it as DfCSubEnablementAtMG with a system-assigned identity and grants that
identity the roles listed in the policy rule.
The authorization list in the parameters file must match the authorizations in
ION - Defender For Cloud.json. If they drift, subscriptions delegated by policy get a
different role set from subscriptions delegated by the script.
Update the Sentinel offer
Redeploy the Sentinel offer deliberately
Owner: Platform security with customer administrator
Because the script skips an existing Sentinel offer, updates are a separate change:
- Edit the authorizations in
ION - Lighthouse.jsonand record a new offer version. - Have the customer administrator run
New-AzSubscriptionDeploymentwith the samemspOfferName. The definition updates in place and the assignment is kept. - Validate (step 10) and record the version on the onboarding record.
If the role set changes materially (a new privilege level, not a correction), create
new versioned groups (for example lighthouse-ion-2023v1-* to the next version)
and a new offer rather than widening the existing groups. Customers then consent to
the new privilege level explicitly, and the old offer is removed after cut-over.
Update the Defender for Cloud offer
Owner: Platform security
Change ION - Defender For Cloud.json and the management-group policy
parameters file in the same change. Rolling out requires a script re-run (with the
access gap above) and a policy remediation task for subscriptions delegated by policy.
Validate
Validate the delegation
Owner: Cyber Advisor and platform security
- In the customer subscription,
Get-AzManagedServicesAssignmentlists ION - Sentinel on the workspace resource group and ION - Defender For Cloud on each enabled subscription. - In
ontinue.com, the customer appears under My customers. - An analyst with an active PIM activation opens the Sentinel workspace; an analyst
without one receives
403. - The automation managed identity reads a watchlist through ARM.
DfCSubEnablementAtMGshows as compliant, or a remediation task is planned.- The offer versions are recorded on the onboarding record.
Offboard
Remove the delegation
Owner: Customer administrator with Cyber Advisor
- Remove the
DfCSubEnablementAtMGpolicy assignment and the policy definition from the management group. Do this first, otherwise the policy re-delegates subscriptions. - Remove the Defender for Cloud registration assignment and definition from each subscription.
- Remove the Sentinel registration assignment and definition.
- Confirm the customer no longer appears under My customers and that ION
workloads receive
404orSubscriptionNotFound, and that scheduled work for the customer has stopped.
Related pages
- Azure Lighthouse architecture
- Guidelines: Azure Lighthouse
- Access Packages (legacy), deployed by the same script
- Customer onboarding identity steps