almenscorner / IntuneCD

Tool to backup, update and document configurations in Intune
MIT License
290 stars 38 forks source link

[FEATURE] Decode JSON payloads for microsoft.graph.androidManagedStoreAppConfiguration #108

Closed aaronparker closed 1 year ago

aaronparker commented 1 year ago

The payloadJson property exported from microsoft.graph.androidManagedStoreAppConfiguration is encoded and therefore not human readable. Here's a sample from a generated document:

image

Describe the solution you'd like Decode the JSON from the base64 string returned from the Graph API.

almenscorner commented 1 year ago

Added to 1.4.6-beta.1, install the beta and run a new backup/document and let me know the results!

pip install IntuneCD==1.4.6b1

almenscorner commented 1 year ago
Screenshot 2023-05-22 at 13 01 40
aaronparker commented 1 year ago

Nice. Will check out my daily backup and report tomorrow.

almenscorner commented 1 year ago

Were you able to test this @aaronparker ? ☺️

aaronparker commented 1 year ago

Realised my backup won't be using the preview versions.

How do you import a cloned copy of the repo locally?

almenscorner commented 1 year ago

You could just copy/clone the git repo on your machine locally and run IntuneCD from your terminal targeting that folder, or maybe I misunderstood? :)

aaronparker commented 1 year ago

Worked it out. Was using pip3 install -e ./src/IntuneCD instead of pip3 install -e ./

aaronparker commented 1 year ago

Looks good.

A great byproduct of decoding the JSON payloads is that PDF document doesn't get the Click to expand item that can't actually expand. This approach will make PDF versions of the as built more useful.

almenscorner commented 1 year ago

Awesome, thanks for verifying!

Yeah it's a much cleaner and more readable output ☺️