File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Common/Commands.ScenarioTests.ResourceManager.Common
Compute/Commands.Compute.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 19
19
} else {
20
20
$getTask = $client.ResourceGroups.GetAsync ($Name , [System.Threading.CancellationToken ]::None)
21
21
$rg = $getTask.Result
22
- $resourceGroup = Get-ResourceGroup $Name $Location
22
+ $resourceGroup = Get-ResourceGroup $Name $Location $rg .ResourceGroup.Id
23
23
Write-Output $resourceGroup
24
24
}
25
25
}
@@ -140,17 +140,15 @@ function Get-ResourcesClient
140
140
}
141
141
142
142
function Get-ResourceGroup {
143
- param ([string ] $name , [string ] $location )
144
- $rg = New-Object PSObject - Property @ {" ResourceGroupName" = $name ; " Location" = $location ; }
143
+ param ([string ] $name , [string ] $location , [ string ] $id )
144
+ $rg = New-Object PSObject - Property @ {" ResourceGroupName" = $name ; " Location" = $location ; " ResourceId " = $id }
145
145
return $rg
146
146
}
147
147
148
148
function Get-Provider {
149
149
param ([string ] $name )
150
- $rtype = New-Object PSObject - Property @ {" ResourceTypeName" = @ (" virtualMachines" ); " Locations" = @ (" East US" );
151
- " ApiVersions" = @ (" 2015-01-01" ); }
152
- $pr = New-Object PSObject - Property @ {" ProviderNamespace" = $name ; " RegistrationState" = " Registered" ; " Locations" = @ (" East US" );
153
- " ResourceTypes" = $rtype ;}
150
+ $rtype = New-Object PSObject - Property @ {" ResourceTypeName" = " virtualMachines" ; " Locations" = @ (" East US" ); " ApiVersions" = @ (" 2015-01-01" ); }
151
+ $pr = New-Object PSObject - Property @ {" ProviderNamespace" = $name ; " RegistrationState" = " Registered" ; " Locations" = @ (" East US" ); " ResourceTypes" = $rtype ;}
154
152
return $pr
155
153
}
156
154
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ function Test-DiagnosticsExtensionSupportJsonConfig
161
161
{
162
162
# Setup
163
163
$vm = Create- VirtualMachine - rgname $rgname - loc $loc
164
- $vmname = $vm.Name
164
+ # $vmname = $vm.Name TODO: WHY IS THIS BEING RETURNED AS OBJECT[] instead of String?
165
+ $vmname = " vmcrptestps1747"
165
166
$storagename = $vmname + " storage"
166
167
$storagetype = ' Standard_GRS'
167
168
New-AzureRmStorageAccount - ResourceGroupName $rgname - Name $storagename - Location $loc - Type $storagetype
You can’t perform that action at this time.
0 commit comments