-
Notifications
You must be signed in to change notification settings - Fork 523
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 - fix AppId assignment #5605
Conversation
@microsoft-github-policy-service agree |
My mistake for not checking the unit tests the first time. The failing test has been patched. It seems clear that the AADServicePrincipal's AppId property should be equal to the AADServicePrincipal's AppId (rather than its DisplayName). Unsure why the test was configured this way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment on the update to the changelog
Unit test expected AppId to be equal to DisplayName instead of AppId
58df889
to
c9bcef9
Compare
@ykuijs @NikCharlebois This is a two-line fix for an issue that breaks the generated |
Just started the unit tests......if that succeeds successfully, we will merge the PR so it will be included in next weeks release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull Request (PR) description
Fixes the assignment of the AppId for the AADServicePrincipal resource. It's currently being set to
$appInstance.DisplayName
, which does not get instantiated at all in most cases. Even in those cases where it does, DisplayName is the wrong property. The AADServicePrincipal AppId property exists on the AADServicePrincipal object, which is always defined.This Pull Request (PR) fixes the following issues
Task list
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).