feat: resource deletion
Former-commit-id: 975343301aabb1570ed9498e2fdbb725d179cab8
This commit is contained in:
Родитель
50737ab3cb
Коммит
0b9d5e00d2
|
@ -27,7 +27,8 @@ $yesList = 'yes','y'
|
|||
|
||||
if ($yesList -contains $answer.ToLower()) {
|
||||
Get-AzResourceGroup | Where-Object ResourceGroupName -match $filter | Remove-AzResourceGroup -AsJob -Force
|
||||
Get-AzADServicePrincipal -DisplayName ("SP-"+$projectName+"-DevTest") | Remove-AzADServicePrincipal -Force
|
||||
Get-AzADServicePrincipal -DisplayName ("SP-"+$projectName+"-DevTest") | ForEach-Object { Remove-AzADServicePrincipal -ApplicationId $_.ApplicationId -Force }
|
||||
|
||||
} else {
|
||||
Write-Host "[Command Skipped] Your resources were not deleted."
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче