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/Tenant/Administration/Application Approval/Invoke-ListAppApprovalTemplates.ps1
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,10 @@ function Invoke-ListAppApprovalTemplates {
Write-LogMessage-API 'Standards'-tenant $tenant-message "Added application $($Application.displayName) ($App) to $Tenant and updated it's permissions"-sev Info
Write-LogMessage-API 'Standards'-tenant $tenant-message "Added application $($Application.displayName) ($App) to $Tenant and updated it's permissions"-sev Info
Write-LogMessage-API 'Standards'-tenant $tenant-message "Failed to add app from approval template $($TemplateName). Error: $ErrorMessage"-sev Error
83
+
}
48
84
}
49
85
}
50
86
}
51
87
52
88
if ($Settings.alert) {
53
-
54
-
$MissingApps=foreach ($Appin$AppsToAdd) {
55
-
if ($App-notin$AppExists.appId) {
56
-
$App
57
-
}
58
-
}
59
-
60
89
if ($MissingApps.Count-gt0) {
61
90
Write-StandardsAlert-message "The following applications are not deployed: $($MissingApps-join', ')"-object (@{ 'Missing Apps'=$MissingApps-join',' }) -tenant $Tenant-standardName 'AppDeploy'-standardId $Settings.standardId
62
91
Write-LogMessage-API 'Standards'-tenant $tenant-message "The following applications are not deployed: $($MissingApps-join', ')"-sev Info
@@ -70,4 +99,5 @@ function Invoke-CIPPStandardAppDeploy {
0 commit comments