Skip to content

Commit

Permalink
Resolve invalid argument exception when pulling Custom Security Attri…
Browse files Browse the repository at this point in the history
…butes due to updated URI.

- FIXES microsoft#5354
  • Loading branch information
mpoulson committed Nov 7, 2024
1 parent 9c7c30f commit a51c9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change log for Microsoft365DSC

# UNRELEASED
* AADServicePrincipal
* Resolve Invalid Argument Exception when pulling custom security attributes
FIXES [#5354](https://github.com/microsoft/Microsoft365DSC/issues/5354)


# 1.24.1106.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ function Get-CustomSecurityAttributes {
[String]$ServicePrincipalId
)

$customSecurityAttributes = Invoke-MgGraphRequest -Uri $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/servicePrincipals/$($ServicePrincipalId)`?`$select=customSecurityAttributes" -Method Get
$customSecurityAttributes = Invoke-MgGraphRequest -Uri "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/servicePrincipals/$($ServicePrincipalId)`?`$select=customSecurityAttributes" -Method Get
$customSecurityAttributes = $customSecurityAttributes.customSecurityAttributes
$newCustomSecurityAttributes = @()

Expand Down

0 comments on commit a51c9be

Please sign in to comment.