@@ -59,9 +59,9 @@ Function Cleanup
59
59
# Removes the applications
60
60
Write-Host " Cleaning-up applications from tenant '$tenantName '"
61
61
62
- Write-Host " Removing 'service1 ' (ms-identity-javascript-tutorial-c4s1-api1 ) if needed"
63
- Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1 '" | ForEach-Object {Remove-AzureADApplication - ObjectId $_.ObjectId }
64
- $apps = Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1 '"
62
+ Write-Host " Removing 'DownstreamAPI ' (ms-identity-javascript-tutorial-c4s2-downstream ) if needed"
63
+ Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream '" | ForEach-Object {Remove-AzureADApplication - ObjectId $_.ObjectId }
64
+ $apps = Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream '"
65
65
if ($apps )
66
66
{
67
67
Remove-AzureADApplication - ObjectId $apps.ObjectId
@@ -70,14 +70,14 @@ Function Cleanup
70
70
foreach ($app in $apps )
71
71
{
72
72
Remove-AzureADApplication - ObjectId $app.ObjectId
73
- Write-Host " Removed ms-identity-javascript-tutorial-c4s1-api1 .."
73
+ Write-Host " Removed ms-identity-javascript-tutorial-c4s2-downstream .."
74
74
}
75
75
# also remove service principals of this app
76
- Get-AzureADServicePrincipal - filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1 '" | ForEach-Object {Remove-AzureADServicePrincipal - ObjectId $_.Id - Confirm:$false }
76
+ Get-AzureADServicePrincipal - filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream '" | ForEach-Object {Remove-AzureADServicePrincipal - ObjectId $_.Id - Confirm:$false }
77
77
78
- Write-Host " Removing 'service2 ' (ms-identity-javascript-tutorial-c4s1-api2 ) if needed"
79
- Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2 '" | ForEach-Object {Remove-AzureADApplication - ObjectId $_.ObjectId }
80
- $apps = Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2 '"
78
+ Write-Host " Removing 'MiddletierAPI ' (ms-identity-javascript-tutorial-c4s2-middletier ) if needed"
79
+ Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier '" | ForEach-Object {Remove-AzureADApplication - ObjectId $_.ObjectId }
80
+ $apps = Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier '"
81
81
if ($apps )
82
82
{
83
83
Remove-AzureADApplication - ObjectId $apps.ObjectId
@@ -86,10 +86,10 @@ Function Cleanup
86
86
foreach ($app in $apps )
87
87
{
88
88
Remove-AzureADApplication - ObjectId $app.ObjectId
89
- Write-Host " Removed ms-identity-javascript-tutorial-c4s1-api2 .."
89
+ Write-Host " Removed ms-identity-javascript-tutorial-c4s2-middletier .."
90
90
}
91
91
# also remove service principals of this app
92
- Get-AzureADServicePrincipal - filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2 '" | ForEach-Object {Remove-AzureADServicePrincipal - ObjectId $_.Id - Confirm:$false }
92
+ Get-AzureADServicePrincipal - filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier '" | ForEach-Object {Remove-AzureADServicePrincipal - ObjectId $_.Id - Confirm:$false }
93
93
94
94
Write-Host " Removing 'spa' (ms-identity-javascript-tutorial-c4s1-spa) if needed"
95
95
Get-AzureADApplication - Filter " DisplayName eq 'ms-identity-javascript-tutorial-c4s1-spa'" | ForEach-Object {Remove-AzureADApplication - ObjectId $_.ObjectId }
0 commit comments