Comments (5)
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.
I suspect that something changed in IntuneCD that doesn't work with your YAML code now?
from devops_pipelines.
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.
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.
thanks 👍
from devops_pipelines.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devops_pipelines.