We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad27a5 commit 9d29876Copy full SHA for 9d29876
Modules/CIPPCore/Public/Authentication/New-CIPPAPIConfig.ps1
@@ -19,7 +19,8 @@ function New-CIPPAPIConfig {
19
20
try {
21
if ($AppId) {
22
- $APIApp = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/applications(appid='$($AppId)')" -NoAuthCheck $true
+ $APIApp = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/applications(appid='$($AppId)')" -NoAuthCheck $true -AsApp $true
23
+ Write-Information "Found existing app with AppId $AppId"
24
} else {
25
$CreateBody = @{
26
api = @{
0 commit comments