Skip to content

Guard staged Entra and Intune device cleanup - #62

Merged
PrzemyslawKlys merged 4 commits into
fix/large-graph-inventoryfrom
feature/cloud-device-cleanup
Sep 22, 2026
Merged

PrzemyslawKlys merged 4 commits into
fix/large-graph-inventoryfrom
feature/cloud-device-cleanup

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add a report-only starting policy for staged Entra and Intune cleanup across Windows, Android, iOS, iPadOS, and macOS. It uses the existing scheduled Graph connection and a separate persistent cloud cleanup datastore.
  • Allow a recent or unknown Intune sync to block Entra disable and delete when the policy requests that protection. Entra-only records remain eligible under the configured Entra activity rule.
  • Stop destructive actions for duplicate Intune links or ambiguous Autopilot identities. Keep standalone Autopilot identity removal on Windows devices, and skip Entra deletion when linked Intune removal fails.
  • Set the next CleanupMonster module version to 3.1.15 and require GraphEssentials 0.0.63 for cloud cleanup.

Release order

This PR builds on CleanupMonster#60, which consumes GraphEssentials#29. Merge and publish GraphEssentials 0.0.63 first, then settle the lower CleanupMonster PR before this one. Deploy the released modules before using the example policy.

Validation

The affected cloud cleanup Pester tests passed on PowerShell 7 and Windows PowerShell 5.1. The example defaults to report-only. Live tenant behavior and full-scale inventory time remain unverified.

@PrzemyslawKlys
PrzemyslawKlys added this pull request to stack #63 September 22, 2026 16:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T17:05:25.205947Z 77b8311 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@PrzemyslawKlys PrzemyslawKlys changed the title feature/cloud device cleanup Guard staged Entra and Intune device cleanup Sep 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f7ba81575

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Private/Get-InitialCloudDevices.ps1 Outdated
@PrzemyslawKlys
PrzemyslawKlys merged commit 7e11706 into master Sep 22, 2026
4 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the feature/cloud-device-cleanup branch September 22, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant