Coder Social home page Coder Social logo

Comments (5)

maudlinp avatar maudlinp commented on June 19, 2024 1

Thanks for the responses! My apologies for not getting back sooner, I was out of the office.

I took the updated code you have and just replaced the variables at the top. It is now working again without error. I didn't need to edit the script beyond the personal variables at the top.

Thanks again for all of your help! This script is the best thing since sliced bread. It is so helpful to see what changes have been made on a daily basis.

from devops_pipelines.

maudlinp avatar maudlinp commented on June 19, 2024

I suspect that something changed in IntuneCD that doesn't work with your YAML code now?

from devops_pipelines.

ztrhgf avatar ztrhgf commented on June 19, 2024

Yep, the problem is that the new IntuneCD version 2.1.0 backups additional Intune data.

What my pipeline code expects is that every json has ID in its name. Which does not apply to scope tags obviously. I've reported this issue to the IntuneCD author.

For now you have to exclude ScopeTag backup via altering "--exclude ScopeTags"

from devops_pipelines.

ztrhgf avatar ztrhgf commented on June 19, 2024

OK so this is strange.

For me this is working perfectly fine. are you absolutely sure your pipeline is not edited in any way?

The problem here is probably the thing that resourceId of default scope tag is zero. Which probably causes trouble in pipeline line 266

if ($resourceId) {

But it shouldn't because internal function _getResourceId returns it as a string which should be treated as true when if condition is calculated.

So please try to modify pipeline line 266 to

if ([string]::IsNullOrEmpty($resourceId)) {

from devops_pipelines.

ztrhgf avatar ztrhgf commented on June 19, 2024

thanks 👍

from devops_pipelines.

Related Issues (4)

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.