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

Removed -ExpandProperty "policy(`$expand=rules)" #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonas04anderberg
Copy link

@jonas04anderberg jonas04anderberg commented Dec 11, 2023

Removed -ExpandProperty "policy(`$expand=rules)" so that the script works again. This is solving issue #41 for me.

When I did some tests with the script, it turns out that the "Rules" property is empty and therefore it returns the error specified in issue #41. Removing the -ExpandProperty parameter completely, solves this issue for me. I don't know if Microsoft have changed something as the script worked for me before, but stopped working all of a sudden.

After looking through the script a little bit more, I don't find any reason as to why the -ExpandProperty parameter should be needed, but it's possible that I have missed something as I'm not good at coding.

Removed -ExpandProperty "policy(`$expand=rules)" so that the script works again. This seems to be solving issue DanielChronlund#41
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

Successfully merging this pull request may close these issues.

1 participant