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

Error before measure-object in revoking authenticationMethods #21

Open
jbreek opened this issue Dec 2, 2024 · 0 comments
Open

Error before measure-object in revoking authenticationMethods #21

jbreek opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jbreek
Copy link

jbreek commented Dec 2, 2024

In both authenticationMethods revoke scripts an error occurs before a measure-object takes place when no authenticationMethods are found.

$currentPhoneAuthenticationMethods = (Invoke-RestMethod @getCurrentPhoneAuthenticationMethodsSplatParams).Value results in an '404 (Not Found)' and a failed revoke. But should end in the 'NoExistingData-SkipDelete' action. Because it results in an error and therefore in the catch-statement, het 'Measure-Object' never occurs.

@JeroenBL JeroenBL added the bug Something isn't working label Dec 30, 2024
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