mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 16:26:09 +03:00
[GH-ISSUE #1047] Blank MEM policy templates when created from existing policies #555
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#555
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 @rthompson1624 on GitHub (Jul 29, 2022).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1047
Description
We're creating new templates from existing policies but when checking the templates they're just empty policies, no settings are actually being defined in the template. Example:
{
"Displayname": "Endpoint Protection Defender Exploit Guard",
"Description": "Template Policy",
"RAWJson": "{"displayName":"Endpoint Protection Defender Exploit Guard","description":"FIT Template Policy","omaSettings":null,"@odata.type":"#microsoft.graph.windows10EndpointProtectionConfiguration"}",
"Type": "Device",
"GUID": "ee361448-47da-4a8f-841f-50d127c3bb31"
}
Environment data
@github-actions[bot] commented on GitHub (Jul 29, 2022):
Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://kelvintegelaar.github.io/CIPP
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.".
Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".
@xhoy commented on GitHub (Aug 1, 2022):
can comfirm.
We have a policy based on the "endpoint protection" profile type. It shows up in the "list policies". When i create a template form it. The "raw json" seems empty. When deployed to a different tenant is has no "configuration" values.
When creating a template from a "administrative template" (with some power settings like standby time etc) Its empty aswel! But this time the JSON seems "filled".
I am 99% sure the "power managemennt" policy worked on CIPP 2.8
Using CIPP 2.9.0 & 1.14.
@xhoy commented on GitHub (Aug 1, 2022):
I did some digging around for the powermanagement policy. Early i created the policy manualy (grep data from the browser). And the raw json looked like this:
When looking at the "auto generated policy" it looks like this:
@xhoy commented on GitHub (Aug 1, 2022):
Seems like issue #1041 is the same!
@xhoy commented on GitHub (Aug 1, 2022):
so, no where near an expert, but it think here is the issue:
github.com/KelvinTegelaar/CIPP-API@98e2b43b95/AddIntuneTemplate/run.ps1 (L53)The url should be something like: https://graph.microsoft.com/beta/deviceManagement/groupPolicyConfigurations('f439a802-f275-43d8-acb1-8a7577d5d977')/definitionValues('0e4e8ba7-b05d-43c9-90ea-8de3941b2ebe')/presentationValues as per https://docs.microsoft.com/en-us/graph/api/intune-grouppolicy-grouppolicydefinitionvalue-get?view=graph-rest-beta
But I have no more time finding out the details!
@KelvinTegelaar commented on GitHub (Aug 1, 2022):
not exactly, but fixed in dev.