Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntuneCD Script backup BUG #78

Closed
Nikolara97 opened this issue Dec 28, 2022 · 8 comments
Closed

IntuneCD Script backup BUG #78

Nikolara97 opened this issue Dec 28, 2022 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@Nikolara97
Copy link

Hi there,

Once I run tool locally with command: IntuneCD-startbackup -m 1 -o yaml -p /path/to/save/in -a /path/to/auth.json/
everything starts backing up from our Intune, but once it comes to script part of backup, we are getting this message:

image

Can you please help?

@Nikolara97 Nikolara97 added the bug Something isn't working label Dec 28, 2022
@almenscorner
Copy link
Owner

Hi,

Try the solution provided here: #51 (comment)

@almenscorner
Copy link
Owner

Hi,

Did the above solution work for you?

@almenscorner almenscorner self-assigned this Jan 5, 2023
@Nikolara97
Copy link
Author

Nikolara97 commented Jan 6, 2023 via email

@almenscorner
Copy link
Owner

@aaronparker wrote a great blog post on that which you can find here: https://stealthpuppy.com/automate-intune-documentation-azure/

Let me know if you need additional help!

@Nikolara97
Copy link
Author

Thank you so much, I created everything from this link and it's working without issues. now I just want to configure one last pipeline for intunecd-startupdate. I saw your example, but I am not pretty sure can it work or is it working like I am thinking. If I am not wrong, if I clone whole backup in local and for example, I change just one configuration for something, push those updates back to AzureDevops and run your example pipeline for intune-startupdate will this push those changes to Intune?

image

I am curious how pipeline knows from where to push those changes... Or if you have some sample pipeline that can do what I have mention above would be really awesome.

Thanks

@almenscorner
Copy link
Owner

What you can do is to add this to the pipeline at the top,

trigger:
 branches:
  include:
    - main

This will ensure that whenever a push is made to the main branch, the pipeline will run.

So, if you clone the Git repo locally, change a value, commit it and push to main, the pipeline will run and update the configuration in Intune with the new value.

What happens when IntuneCD-startupdate runs is that it will compare the settings you have in the Intune environment specified in the ENV vars for the pipeline to what you have in the Git repo. If the configuration in Intune differs from what is in the repo, IntuneCD will update that configuration with the new setting.

This way, the source is always the Git repo, the configurations that are there is what is in production.

@Nikolara97
Copy link
Author

Nikolara97 commented Jan 12, 2023 via email

@almenscorner
Copy link
Owner

Good to hear :)

I will go ahead and close this issue. If you have any additional questions or problem, open a new issue or create a new discussion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants