File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public partial class VirtualMachineTests
23
23
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
24
24
public void TestVirtualMachine ( )
25
25
{
26
- ComputeTestController . NewInstance . RunPsTest ( "Test-VirtualMachine" ) ;
26
+ ComputeTestController . NewInstance . RunPsTest ( @ "Test-VirtualMachine $null ") ;
27
27
}
28
28
29
29
[ Fact ]
Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ Test Virtual Machines
18
18
#>
19
19
function Test-VirtualMachine
20
20
{
21
+ param ($loc )
21
22
# Setup
22
23
$rgname = Get-ComputeTestResourceName
23
24
24
25
try
25
26
{
26
27
# Common
27
- $loc = Get-ComputeVMLocation ;
28
+ if ($loc -eq $null )
29
+ {
30
+ $loc = Get-ComputeVMLocation ;
31
+ }
28
32
New-AzureRmResourceGroup - Name $rgname - Location $loc - Force;
29
33
30
34
# VM Profile & Hardware
You can’t perform that action at this time.
0 commit comments