Giter VIP home page Giter VIP logo

Comments (10)

almenscorner avatar almenscorner commented on August 17, 2024

Hi @Ozurian,

Do you get any errors when it tries to create the policy? I just tried the reproduction steps you provided and the policy created without any issues. If the policy contains message templates however they are not added but the policy and scheduled actions were successfully added.

from intunecd.

Ozurian avatar Ozurian commented on August 17, 2024

@almenscorner

The error that occurs is this one:
image

iOS-Test-Compliance.zip

from intunecd.

Ozurian avatar Ozurian commented on August 17, 2024

This only happened when the policy was not already existing in the tenant though, every time I had one with the same name first it all works to update any wrong settings

from intunecd.

almenscorner avatar almenscorner commented on August 17, 2024

Can you do a new backup of the policy? it looks like keys that should be removed from the policy is not removed from that JSON. I did a new export in JSON myself and keys like ID should not be there in the backup.

from intunecd.

Ozurian avatar Ozurian commented on August 17, 2024

The backup itself gives no errors and generated the JSON file I attached, it never seems to give any hard errors on that step even though it ends up with these properties that should not be there

from intunecd.

almenscorner avatar almenscorner commented on August 17, 2024

Very strange, I tried to get a JSON generated with they keys still there like you have in the attached example but I'm not able to replicate that. I tried in a pipeline in Azure DevOps, a macOS host and a Windows host but it exports without the keys like it should on all of them.

from intunecd.

Ozurian avatar Ozurian commented on August 17, 2024

I think I see what is happening here now, since I have excluded assignments from backup the whole section that removes the keys is skipped due to the if check here:

if "assignments" not in exclude:

from intunecd.

almenscorner avatar almenscorner commented on August 17, 2024

You are right, that is for sure a bug in the compliance backup module. I will push a patch for that today to get it sorted!

from intunecd.

Ozurian avatar Ozurian commented on August 17, 2024

That sounds great, thanks!

from intunecd.

almenscorner avatar almenscorner commented on August 17, 2024

Thank you for finding that one ☺️

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.