@@ -94,65 +94,6 @@ public static void AssemblyInit(TestContext context)
94
94
[ AssemblyCleanup ]
95
95
public static void CleanUpAssembly ( )
96
96
{
97
- //vmPowershellCmdlets = new ServiceManagementCmdletTestHelper();
98
-
99
- //// Cleaning up affinity groups
100
- //var affGroup = vmPowershellCmdlets.GetAzureAffinityGroup();
101
- //if (affGroup.Count > 0)
102
- //{
103
- // foreach (var aff in affGroup)
104
- // {
105
- // try
106
- // {
107
- // vmPowershellCmdlets.RemoveAzureAffinityGroup(aff.Name);
108
- // }
109
- // catch (Exception e)
110
- // {
111
- // if (e.ToString().Contains(BadRequestException))
112
- // {
113
- // Console.WriteLine("Affinity Group, {0}, is not deleted.", aff.Name);
114
- // }
115
- // }
116
- // }
117
- //}
118
-
119
- //if (defaultAzureSubscription != null)
120
- //{
121
- // // Cleaning up virtual disks
122
- // try
123
- // {
124
- // Retry(String.Format("Get-AzureDisk | Where {{$_.DiskName.Contains(\"{0}\")}} | Remove-AzureDisk", serviceNamePrefix), "in use");
125
- // if (deleteDefaultStorageAccount)
126
- // {
127
- // //vmPowershellCmdlets.RemoveAzureStorageAccount(defaultAzureSubscription.CurrentStorageAccountName);
128
- // }
129
- // }
130
- // catch
131
- // {
132
- // Console.WriteLine("Error occurred during cleaning up disks..");
133
- // }
134
-
135
- // // Cleaning up vm images
136
- // try
137
- // {
138
- // vmPowershellCmdlets.RunPSScript("Get-AzureVMImage | Where {$_.Categori -eq \"User\"} | Remove-AzureVMImage");
139
- // }
140
- // catch
141
- // {
142
- // Console.WriteLine("Error occurred during cleaning up vm images..");
143
- // }
144
-
145
- // // Cleaning up reserved ips
146
- // try
147
- // {
148
- // vmPowershellCmdlets.RunPSScript("Get-AzureReservedIp | Remove-AzureReservedIp -Force");
149
- // }
150
- // catch
151
- // {
152
- // Console.WriteLine("Error occurred during cleaning up reserved ips..");
153
- // }
154
- //}
155
-
156
97
if ( string . IsNullOrEmpty ( currentEnvName ) )
157
98
{
158
99
vmPowershellCmdlets . RunPSScript ( string . Format ( "Remove-AzureEnvironment -Name {0} -Force" , TempEnvName ) ) ;
0 commit comments