Skip to content

Commit 6cc4f12

Browse files
authored
Fixing DTL line to use correct cmdlet and parameters
1 parent 7f24885 commit 6cc4f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/lab-services/use-command-line-start-stop-virtual-machines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $vmAction = "Start"
5454
Select-AzSubscription -SubscriptionId $subscriptionId
5555
5656
# Get the lab information
57-
$devTestLab = Find-AzResource -ResourceType 'Microsoft.DevTestLab/labs' -ResourceNameEquals $devTestLabName
57+
$devTestLab = Get-AzResource -ResourceType 'Microsoft.DevTestLab/labs' -ResourceName $devTestLabName
5858
5959
# Start the VM and return a succeeded or failed status
6060
$returnStatus = Invoke-AzResourceAction `

0 commit comments

Comments
 (0)