Skip to content

Commit

Permalink
Merge pull request #5605 from niwamo/Fix_AADServicePrincipal
Browse files Browse the repository at this point in the history
AADServicePrincipal - fix AppId assignment
  • Loading branch information
ykuijs authored Jan 17, 2025
2 parents 129fc89 + 1a541ee commit a59a6d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# UNRELEASED

* AADServicePrincipal
* FIXES [#5549](https://github.com/microsoft/Microsoft365DSC/issues/5549)
* AADDeviceRegistrationPolicy
* Fixes an error when trying to disable AAD join.
* FabricAdminTenantSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function Get-TargetResource
}

$result = @{
AppId = $appInstance.DisplayName
AppId = $AADServicePrincipal.AppId
AppRoleAssignedTo = $AppRoleAssignedToValues
ObjectID = $AADServicePrincipal.Id
DisplayName = $AADServicePrincipal.DisplayName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
Context -Name 'The app exists and values are already in the desired state' -Fixture {
BeforeAll {
$testParams = @{
AppId = 'App1'
AppId = 'b4f08c68-7276-4cb8-b9ae-e75fca5ff834'
DisplayName = 'App1'
AlternativeNames = 'AlternativeName1', 'AlternativeName2'
AccountEnabled = $true
Expand Down

0 comments on commit a59a6d2

Please sign in to comment.