You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecApiClient.ps1
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ function Invoke-ExecApiClient {
107
107
} catch {
108
108
$Results=@{
109
109
Enabled='Could not get API clients, ensure you have the appropriate rights to read the Authentication settings.'
110
+
Error= (Get-CippException-Exception $_)
110
111
}
111
112
}
112
113
$Body=@{
@@ -124,7 +125,10 @@ function Invoke-ExecApiClient {
124
125
$Body=@{ Results='API clients saved to Azure' }
125
126
Write-LogMessage-headers $Request.Headers-API 'ExecApiClient'-message 'Saved API clients to Azure'-Sev 'Info'
126
127
} catch {
127
-
$Body=@{ Results='Failed to save allowed API clients to Azure, ensure your function app has the appropriate rights to make changes to the Authentication settings.' }
128
+
$Body=@{
129
+
Results='Failed to save allowed API clients to Azure, ensure your function app has the appropriate rights to make changes to the Authentication settings.'
0 commit comments