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
if (-not (($deleteVM.StatusCode-eq"OK") -and ($deleteVM.IsSuccessStatusCode)))
867
+
{
868
+
throw [System.Exception]"Failed to delete the VM $privateVMName"
869
+
}
862
870
}
863
871
}
864
-
}
865
872
866
-
Invoke-Usecase-Name 'DeleteVMResourceGroup'-Description "Delete the resource group that contains all the VMs and corresponding resources"-UsecaseBlock `
867
-
{
868
-
if ($removeRG=Get-AzureRmResourceGroup-Name $CanaryVMRG-ErrorAction Stop)
873
+
Invoke-Usecase-Name 'DeleteVMResourceGroup'-Description "Delete the resource group that contains all the VMs and corresponding resources"-UsecaseBlock `
Invoke-Usecase-Name 'DeleteUtilitiesResourceGroup'-Description "Delete the resource group that contains all the utilities and corresponding resources"-UsecaseBlock `
875
-
{
876
-
if ($removeRG=Get-AzureRmResourceGroup-Name $CanaryUtilitiesRG-ErrorAction Stop)
881
+
Invoke-Usecase-Name 'DeleteUtilitiesResourceGroup'-Description "Delete the resource group that contains all the utilities and corresponding resources"-UsecaseBlock `
Invoke-Usecase-Name 'LoginToAzureStackEnvAsSvcAdminForCleanup'-Description "Login to $SvcAdminEnvironmentName as service administrator to remove the subscription resource group"-UsecaseBlock `
Invoke-Usecase-Name 'LoginToAzureStackEnvAsSvcAdminForCleanup'-Description "Login to $SvcAdminEnvironmentName as service administrator to remove the subscription resource group"-UsecaseBlock `
0 commit comments