Feature/enable downloading and updating existing policies #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've developed a script for dowloading deployed Conditional Access policies into the repo to versionize them and track changes over time. Also thanks to that updating policies is enabled without need to manually add IDs of policies into policy templates.
Policy IDs cannot be added to policy templates in any policy set because in case of using rings there are multiple policies created by the same template.
Updating existing policies requires to download currently implemented ones first.
Object IDs in downloaded policies are replaced with respective object display names for improving readability.
I hope you find it useful. In my case it does the job properly.
As it's my very first public contribution any suggestions to improve code quality or whatever are very much appreciated. :)