Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ConnectedMachine/custom/Connect-AzConnectedMachine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function Connect-AzConnectedMachine {
# Handle show result by getting the name and getting the machine object
$showResult | ForEach-Object {
# Get name of machine registered
$selectStrResult = $ShowResult | Select-String -Pattern "^Resource Name\s+: (?<resourceName>.*)\n"
$selectStrResult = $_ | Select-String -Pattern "^Resource Name\s+: (?<resourceName>.*)\n"
$Name = $selectStrResult.Matches.Groups |
Where-Object Name -EQ resourceName |
Select-Object -ExpandProperty Value
Expand Down