Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…to ExoMigrationEndpoint
  • Loading branch information
PiyushDub committed Oct 4, 2024
2 parents 17c7d1f + 3c57bf8 commit 5f599d2
Show file tree
Hide file tree
Showing 14 changed files with 876 additions and 23 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Change log for Microsoft365DSC

# Unreleased
# UNRELEASED

* AADEntitlementManagementSettings
* Added support for ApplicationSecret
* EXOMigrationEndpoint
* Initial Release
* M365DSCDRGUtil
* Fixes an issue for the handling of skipped one-property elements in the
Settings Catalog. FIXES [#5086](https://github.com/microsoft/Microsoft365DSC/issues/5086)

# 1.24.1002.1

Expand All @@ -20,6 +25,8 @@
* Added ReportSuspiciousActivitySettings
* AADAuthenticationMethodPolicyHardware
* Initial release.
* AADAuthenticationRequirement
* Initial release.
* AADEntitlementManagementSettings
* Initial release.
* AADFeatureRolloutPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,16 @@ function Set-TargetResource

if($needToUpdateKeyCredentials -and $KeyCredentials)
{
Write-Warning -Message "KeyCredentials is a readonly property and cannot be configured."
Write-Verbose -Message "Updating for Azure AD Application {$($currentAADApp.DisplayName)} with KeyCredentials:`r`n$($KeyCredentials| Out-String)"

if((currentAADApp.KeyCredentials.Length -eq 0 -and $KeyCredentials.Length -eq 1) -or (currentAADApp.KeyCredentials.Length -eq 1 -and $KeyCredentials.Length -eq 0))
{
Update-MgApplication -ApplicationId $currentAADApp.Id -KeyCredentials $KeyCredentials | Out-Null
}
else
{
Write-Warning -Message "KeyCredentials cannot be updated for AAD Applications with more than one KeyCredentials due to technical limitation of Update-MgApplication Cmdlet. Learn more at: https://learn.microsoft.com/en-us/graph/api/application-addkey"
}
}
}

Expand Down
Loading

0 comments on commit 5f599d2

Please sign in to comment.