We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71e771b + e164792 commit a835cbaCopy full SHA for a835cba
articles/lab-services/add-artifact-vm.md
@@ -87,7 +87,7 @@ param
87
Set-AzContext -SubscriptionId $SubscriptionId | Out-Null
88
89
# Get the lab resource group name
90
-$resourceGroupName = (Find-AzResource -ResourceType 'Microsoft.DevTestLab/labs' | Where-Object { $_.Name -eq $DevTestLabName}).ResourceGroupName
+$resourceGroupName = (Get-AzResource -ResourceType 'Microsoft.DevTestLab/labs' | Where-Object { $_.Name -eq $DevTestLabName}).ResourceGroupName
91
if ($resourceGroupName -eq $null) { throw "Unable to find lab $DevTestLabName in subscription $SubscriptionId." }
92
93
# Get the internal repo name
0 commit comments