-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az ssh vm Command not Passing Multiple Local Port Forwards #27503
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botSSHService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.VM SSHact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botSSHService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.VM SSHact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
Passing multiple local port forwards with the az ssh vm command only successfully tunnels the first port passed. Second, third, and subsequent port forward parameters are not successfully established.
Related command
az ssh vm --resource-group AZResourceGroup --name AZServerName -- -f -N -o ExitOnForwardFailure=yes -L 10001:first.exampleserver.com:3389 10002:second.exampleserver.com:3389 10003:third.exampleserver.com:3389
Errors
No error output is shown. Subsequent local port forwards are simply not established.
Issue script & Debug output
N/A
Expected behavior
All local port forwards are established.
Environment Summary
{
"azure-cli": "2.52.0",
"azure-cli-core": "2.52.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"ssh": "1.1.6"
}
}
Additional context
All local port forwards used to be established successfully in a previous version of Azure CLI. I do not recall which previous version.