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

[AADServicePrincipal] Test method fails because of Write-Error in Get method #2961

Closed
ykuijs opened this issue Mar 3, 2023 · 0 comments · Fixed by #2967 or #2986
Closed

[AADServicePrincipal] Test method fails because of Write-Error in Get method #2961

ykuijs opened this issue Mar 3, 2023 · 0 comments · Fixed by #2967 or #2986
Assignees
Labels
Bug Something isn't working Entra ID

Comments

@ykuijs
Copy link
Member

ykuijs commented Mar 3, 2023

Details of the scenario you tried and the problem that is occurring

The Get method has a Write-Error, which it is calling when the service principal doesn't exist. This however is causing that the Test method fails and does not call the Set method. Therefore the service principal is never created.

Verbose logs showing the problem

Suggested solution to the issue

Replace Write-Error with Write-Verbose.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here

The operating system the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)

Dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Entra ID
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant