Skip to content

Commit c6fe54a

Browse files
committed
Update Set-CippApiAuth.ps1
1 parent 96632cc commit c6fe54a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ function Set-CippApiAuth {
2020
# Get auth settings
2121
$AuthSettings = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" | Select-Object -ExpandProperty Content | ConvertFrom-Json
2222

23+
Write-Information "AuthSettings: $($AuthSettings | ConvertTo-Json -Depth 10)"
24+
2325
# Set allowed audiences
2426
$AllowedAudiences = foreach ($ClientId in $ClientIds) {
2527
"api://$ClientId"

0 commit comments

Comments
 (0)