Skip to content

Intermittent errors when deleting Service Principal using teardown.ps1 #4

@CloudViking

Description

@CloudViking

Example Run of teardown.ps1

~\OneDrive - Microsoft\code\github\SubscriptionBuilder [hjbdev-exceptions +0 ~1 -0 !]> .\teardown.ps1
Deleting Resource Group: robust-rg
True
Deleting Service Principal: robust
Remove-AzADApplication : The following query options are not supported by this request method or cannot be applied to the requested resource: $filter,$expand,$orderby,$count,$inlinecount,$select,$skiptoken,$skip,$top
At C:\Users\hbendana\OneDrive - Microsoft\code\github\SubscriptionBuilder\teardown.ps1:28 char:5
+     Remove-AzADApplication -DisplayName $sp.DisplayName -Force -PassT ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Remove-AzADApplication], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.RemoveAzureADApplicationCommand
Subscription Builder infrastructure has been cleaned up!
~\OneDrive - Microsoft\code\github\SubscriptionBuilder [hjbdev-exceptions +0 ~1 -0 !]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions