Flight Log / microsoft/Microsoft365DSC #6229
Fix AADConditionalAccessPolicy ExcludeExternalTenantsMembershipKind empty string handling — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in microsoft/Microsoft365DSC on Jun 26, 2025; a burn — closed unmerged after human review: +63,511 −13,745, 3 files, 0 reviews.
- Lines
- +63,511 −13,745
- Files
- 3
- Commits
- 3
- Reviews
- 0
- To merge
- —
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Copilot attempts a fix in the Microsoft DSC repository for the AADConditionalAccessPolicy resource. An unset ExcludeExternalTenantsMembershipKind is sent as an empty string, which the Graph API rejects. The change spans three files across three commits, with 63511 additions and 13745 deletions. No reviews are recorded. It closes unmerged after human review: a burn.
“There is still a potential bug I think: If ExcludeExternalTenantsMembershipKind is set to **All**, it is also possible to define and add ExcludeExternalTenantsMembers. And the”
— from the review (source)
From the pull request description
## Problem When applying a conditional access policy without setting a value for `ExcludeExternalTenantsMembershipKind`, DSC tries to set `ExcludeExternalTenantsMembershipKind: ''` which results in a Microsoft Graph API error. The API rejects requests when an empty `membershipKind` property is inclu…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedNikCharlebois
- —committedcopilot-swe-agent[bot]
- Jul 4, 2025closedNikCharlebois
Read next
Cite this flight: AgentRiders Flight Log, microsoft/Microsoft365DSC#6229, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/Microsoft365DSC/6229/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.