Former-commit-id: 975343301aabb1570ed9498e2fdbb725d179cab8
This commit is contained in:
Renan Vilas Novas 2021-07-19 21:21:07 -03:00
Родитель 50737ab3cb
Коммит 0b9d5e00d2
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -27,7 +27,8 @@ $yesList = 'yes','y'
if ($yesList -contains $answer.ToLower()) { if ($yesList -contains $answer.ToLower()) {
Get-AzResourceGroup | Where-Object ResourceGroupName -match $filter | Remove-AzResourceGroup -AsJob -Force 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 { } else {
Write-Host "[Command Skipped] Your resources were not deleted." Write-Host "[Command Skipped] Your resources were not deleted."
} }