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

Compare and Bulk Compare process #128

Open
martincaddick opened this issue Apr 13, 2023 · 3 comments
Open

Compare and Bulk Compare process #128

martincaddick opened this issue Apr 13, 2023 · 3 comments

Comments

@martincaddick
Copy link

Hi Micke,
Probably something I'm doing wrong, however,
What I'm trying to do is export the configuration from one tenant (Contoso) and then bulk compare the configuration with another tenant (Contoso Target). These are just standard demos.ms.com tenants so I'm happy to provide you access if it helps.

How do I exclude some fields from the compare? In particular, I need to exclude the Id, createdDateTime, lastModifiedDateTime and potentially, the assignments as well.

Cheers

image

image

@Micke-K
Copy link
Owner

Micke-K commented Apr 13, 2023

Hello!

The error should be fixed in the next version. That was the easy part...

The other thing not so easy. The design as it is now is that the exported policy must be from the same tenant. There are some reasons for that. I can fix it but this will require a redesign of the Compare functionality. I started that a year ago but never finished it.

I will try to add it to the list that keeps growing.

Things to add support for:

  • Compare policies from different tenants
  • Property compare for Settings Catalog and and other Settings policies
  • Support property exclusion. Base + custom properties?
  • Anything else?

Note: Administrative Templates polices based on custom ADMX will not work or be very complex to fix since they have a unique ID for each setting in every tenant.

@martincaddick
Copy link
Author

To be clear, those screenshots were comparing Contoso and Contoso Target, 2 different tenants.

@martincaddick
Copy link
Author

@Micke-K
Came across this https://evotec.xyz/powershell-comparing-advanced-objects/ so something I'll use in the meantime from here https://github.com/EvotecIT/PSSharedGoods
Cheers

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants