[GH-ISSUE #4063] BUG: No policy in target tenant leads to report stating Compliant in Intune Template standard #1840

Closed
opened 2026-03-02 13:47:31 +03:00 by kerem · 2 comments
Owner

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.`

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 https://github.com/KelvinTegelaar/CIPP-API/blob/ada0f46957d628f42bb2c10793bb9acf44deb0c5/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1#L75 Which is probably leading to an 'OK' here: https://github.com/KelvinTegelaar/CIPP-API/blob/ada0f46957d628f42bb2c10793bb9acf44deb0c5/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.`
kerem 2026-03-02 13:47:31 +03:00
Author
Owner

@KelvinTegelaar commented on GitHub (May 15, 2025):

!support

<!-- gh-comment-id:2881892712 --> @KelvinTegelaar commented on GitHub (May 15, 2025): !support
Author
Owner

@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

<!-- gh-comment-id:2881892888 --> @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**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1840
No description provided.