GithubHelp home page GithubHelp logo

Comments (15)

almenscorner avatar almenscorner commented on June 3, 2024 1

Found the issue with the custom Windows compliance, it was not setting the name upon backup and created with the old ID always, I have fixed this in my local branch and is now working as expected

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

This feature has been added in the latest beta, 2.2.0 Beta7, please test this version and check that custom compliance scripts is now created/updated.

pip3 install IntuneCD==2.2.0b7

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

Hi, i could backup the compliance policies. The import of the policy on an other tenant did not work. I could import the custom compliance script. Also the entry of the compliance policy is getting created, but when i want to open the compliance policy the following error appears: "Something went wrong There was an error loading data."

In the export, the "Script Data" is also not ending with *.ps1 its a plain file and im not sure if this is needed because the script data is saved as base64 encoded data in the custom compliance script json file. And when i edit the file in the Script Data, the import does not detect the change.

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

Interesting, all my exports has ".ps1" in Script Data, the change is not compared on the Script Data export, that is just an export of the script for your referance, the change is detected on the base64 string on the actual policy.

I have left it like that because it is how you normally work with these policies, i.e., the change to the script is made in console whereas an update to a normal PowerShell script or shell script is done via file upload.

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

I've seen for custom PowerShell specifically it can take some time before the script actually is visible in the console and until that time the compliance policy will fail to load

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

ah, found the issue why you do not have ".ps1", it only adds it when using "--append-id", I will fix that!

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

I've seen for custom PowerShell specifically it can take some time before the script actually is visible in the console and until that time the compliance policy will fail to load

I found the problem. I looked up the graph requests when i open the compliance policy. one of the requests failed with code 404. this request was referencing to the "deviceComplianceScripts" with the id from the source tenant. there is an referencing issue while creating the new compliance policy to the new created compliance script.

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

So it sounds like it failed to create the compliance script or it hadn't showed up yet so the old ID was used

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

Instead of that happening, the creation of the policy should then fail if the script does not exist

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

So it sounds like it failed to create the compliance script or it hadn't showed up yet so the old ID was used

I tested couple of scenarios, but the deviceComplianceScripts ID newer gets associated correctly.

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

Maybe you could add an log entry to

So it sounds like it failed to create the compliance script or it hadn't showed up yet so the old ID was used

I tested couple of scenarios, but the deviceComplianceScripts ID newer gets associated correctly.

I'v created the Compliance Scripts via IntuneCD and check the apperance of the scripts in the tenant. After they where visible and accessable via graph i'v created the compliance policies but the assigment wasn't right.

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

what was not right with the assignments?

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

what was not right with the assignments?

Sorry i think i use the wrong "word" i meant the accociation between the Windows Custom Compliance Policy and the Custom Compliance Script. There was no problem with the "Assigment"

from intunecd.

almenscorner avatar almenscorner commented on June 3, 2024

Ah, got it, then all should be good now :)

Plan is to release later today!

from intunecd.

Edocsyl avatar Edocsyl commented on June 3, 2024

Thanks!

from intunecd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.