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
{{ message }}
This repository was archived by the owner on May 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: 3-Authorization-II/1-call-api/AppCreationScripts/Cleanup.ps1
+35-14Lines changed: 35 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
1
+
2
2
[CmdletBinding()]
3
3
param(
4
4
[Parameter(Mandatory=$False,HelpMessage='Tenant ID (This is a GUID which represents the "Directory ID" of the AzureAD tenant into which you want to create the apps')]
Write-Host"Unable to remove ServicePrincipal 'msal-node-api' . Try deleting manually from Enterprise applications."-ForegroundColor White -BackgroundColor Red
74
+
$message=$_
75
+
Write-Warning$Error[0]
76
+
Write-Host"Unable to remove ServicePrincipal 'msal-node-api'. Error is $message. Try deleting manually from Enterprise applications."-ForegroundColor White -BackgroundColor Red
70
77
}
71
78
Write-Host"Removing 'client' (msal-react-spa) if needed"
Write-Host"Unable to remove ServicePrincipal 'msal-react-spa' . Try deleting manually from Enterprise applications."-ForegroundColor White -BackgroundColor Red
111
+
$message=$_
112
+
Write-Warning$Error[0]
113
+
Write-Host"Unable to remove ServicePrincipal 'msal-react-spa'. Error is $message. Try deleting manually from Enterprise applications."-ForegroundColor White -BackgroundColor Red
0 commit comments