@@ -275,13 +275,13 @@ function Test-VirtualMachineCustomScriptExtension
275
275
276
276
$p.StorageProfile.OSDisk = $null ;
277
277
$p = Set-AzureVMOperatingSystem - VM $p - Windows - ComputerName $computerName - Credential $cred - ProvisionVMAgent;
278
- $p = Set-AzureVMSourceImage - VM $p - Name $img - DestinationVhdsContainer $vhdContainer ;
278
+ $p = Set-AzureVMSourceImage - VM $p - Name $img # -DestinationVhdsContainer $vhdContainer;
279
279
280
280
Assert-AreEqual $p.OSProfile.AdminUsername $user ;
281
281
Assert-AreEqual $p.OSProfile.ComputerName $computerName ;
282
282
Assert-AreEqual $p.OSProfile.AdminPassword $password ;
283
283
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true ;
284
- Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString () $vhdContainer ;
284
+ # Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
285
285
Assert-AreEqual $p.StorageProfile.SourceImage.ReferenceUri (' /' + (Get-AzureSubscription - Current).SubscriptionId + ' /services/images/' + $img );
286
286
287
287
# Virtual Machine
@@ -326,7 +326,7 @@ function Test-VirtualMachineCustomScriptExtension
326
326
Assert-AreEqual $vm1.Name $vmname ;
327
327
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1 ;
328
328
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces [0 ].ReferenceUri $nicId ;
329
- Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString () $vhdContainer ;
329
+ # Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
330
330
Assert-AreEqual $vm1.StorageProfile.SourceImage.ReferenceUri (' /' + (Get-AzureSubscription - Current).SubscriptionId + ' /services/images/' + $img );
331
331
Assert-AreEqual $vm1.OSProfile.AdminUsername $user ;
332
332
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName ;
@@ -434,13 +434,13 @@ function Test-VirtualMachineAccessExtension
434
434
435
435
$p.StorageProfile.OSDisk = $null ;
436
436
$p = Set-AzureVMOperatingSystem - VM $p - Windows - ComputerName $computerName - Credential $cred - ProvisionVMAgent;
437
- $p = Set-AzureVMSourceImage - VM $p - Name $img - DestinationVhdsContainer $vhdContainer ;
437
+ $p = Set-AzureVMSourceImage - VM $p - Name $img # -DestinationVhdsContainer $vhdContainer;
438
438
439
439
Assert-AreEqual $p.OSProfile.AdminUsername $user ;
440
440
Assert-AreEqual $p.OSProfile.ComputerName $computerName ;
441
441
Assert-AreEqual $p.OSProfile.AdminPassword $password ;
442
442
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true ;
443
- Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString () $vhdContainer ;
443
+ # Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
444
444
Assert-AreEqual $p.StorageProfile.SourceImage.ReferenceUri (' /' + (Get-AzureSubscription - Current).SubscriptionId + ' /services/images/' + $img );
445
445
446
446
# Virtual Machine
@@ -483,7 +483,7 @@ function Test-VirtualMachineAccessExtension
483
483
Assert-AreEqual $vm1.Name $vmname ;
484
484
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1 ;
485
485
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces [0 ].ReferenceUri $nicId ;
486
- Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString () $vhdContainer ;
486
+ # Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
487
487
Assert-AreEqual $vm1.StorageProfile.SourceImage.ReferenceUri (' /' + (Get-AzureSubscription - Current).SubscriptionId + ' /services/images/' + $img );
488
488
Assert-AreEqual $vm1.OSProfile.AdminUsername $user ;
489
489
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName ;
0 commit comments