mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 08:16:01 +03:00
[GH-ISSUE #4063] BUG: No policy in target tenant leads to report stating Compliant in Intune Template standard #1840
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#1840
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @romkeboonstra-spie-ics-nl on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4063
When the Intune Template standard is set to report on a template and the target tenant doesn't contain an intune policy that matches the display name of the template, it is still reported as compliant. I would have expected non-compliance due to a missing policy.
I think I've found the code lines in the API that are responsible for this as well
Here it checks for the $Compare object, which is probably null-valued
github.com/KelvinTegelaar/CIPP-API@ada0f46957/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 (L75)Which is probably leading to an 'OK' here:
github.com/KelvinTegelaar/CIPP-API@ada0f46957/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1 (L152)If I create a policy in the target tenant with a matching name, but different settings, the report says 'Non-compliant' like expected.
`2025-05-07T13:55:38Z [Information] INFORMATION: IntuneTemplate: 72dd58f6-e56d-4fec-a048-dbdc087baef0 - No existing policy found.
2025-05-07T13:55:38Z [Information] INFORMATION: IntuneTemplate: 72dd58f6-e56d-4fec-a048-dbdc087baef0 - No differences found.`
@KelvinTegelaar commented on GitHub (May 15, 2025):
!support
@github-actions[bot] commented on GitHub (May 15, 2025):
Hello,
Thank you for reaching out! This report has been classified as a support request rather than a bug or feature request. To keep our development process focused, support requests are limited to paying users. This policy allows us to prioritize resources for those actively supporting CIPP, helping us maintain high-quality development and support.
Sponsors can contact our helpdesk directly via email for assistance with any issues or questions. For non-sponsor support, please refer to our documentation and community discussions—many questions have been answered there.
Did you get this notification in error? Reply with a screenshot of your sponsorship payment, and we’ll gladly reopen the request.
Thank you for your understanding,
The CIPP Team