Skip to content

Detect broken Intune links in cloud cleanup - #50

Merged
PrzemyslawKlys merged 9 commits into
masterfrom
codex/cloud-broken-intune-links
Jun 27, 2026
Merged

PrzemyslawKlys merged 9 commits into
masterfrom
codex/cloud-broken-intune-links

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

Summary

  • classify cloud inventory with IntuneLinkState (Healthy, Broken, NotClaimed, IntuneOnly) and ClaimsIntuneManagement
  • add -IntuneLinkState Broken filtering so operators can target devices that claim Intune/MDM but have no matching Intune managed-device record
  • add standalone -RemoveAutopilotIdentity flow with association/last-contact filters and -WhatIfRemoveAutopilotIdentity
  • highlight broken Intune links in HTML/email output and document preview examples

Dependency

Validation

  • Invoke-Pester -Path .\Tests\CloudDeviceInventory.Tests.ps1, .\Tests\Request-CloudDeviceActions.Tests.ps1, .\Tests\Invoke-CloudDevicesCleanup.Tests.ps1 -CI

@PrzemyslawKlys

Copy link
Copy Markdown
Member Author

@codex please check

1 similar comment
@PrzemyslawKlys

Copy link
Copy Markdown
Member Author

@codex please check

@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: 7119ff660e

ℹ️ 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 Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread README.MD Resolved
Comment thread Private/Get-InitialCloudDevices.ps1 Resolved

@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: 5122ca5af8

ℹ️ 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-CloudDevicesToProcess.ps1 Resolved
Comment thread Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread Private/Get-InitialCloudDevices.ps1 Resolved

@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: 10e2595989

ℹ️ 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 Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread Public/Invoke-CloudDevicesCleanup.ps1 Resolved

@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: 58d7da35c3

ℹ️ 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 Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread Public/Invoke-CloudDevicesCleanup.ps1 Resolved

@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: 898078fcbd

ℹ️ 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 Public/Invoke-CloudDevicesCleanup.ps1 Resolved
@PrzemyslawKlys

Copy link
Copy Markdown
Member Author

@codex please review

@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: 7c38964e81

ℹ️ 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 Public/Invoke-CloudDevicesCleanup.ps1 Resolved
Comment thread Public/Invoke-CloudDevicesCleanup.ps1 Resolved

@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: 5dfcbfe50a

ℹ️ 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 Resolved

@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: 9249fa358e

ℹ️ 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 Resolved
@PrzemyslawKlys
PrzemyslawKlys merged commit 059e4a1 into master Jun 27, 2026
4 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the codex/cloud-broken-intune-links branch October 30, 2026 22:43
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