Skip to content

az ssh vm Command not Passing Multiple Local Port Forwards #27503

@JWohlschlag-Euclid

Description

@JWohlschlag-Euclid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botSSHService AttentionThis 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.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions