-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass-through options to ssh
on az ssh vm
& friends
#19101
Comments
route to service team |
Sadly -- didn't appear to be easy to support given the existing azure cli arguments parser -- for now I've added an additional args parameter as part of Azure/azure-cli-extensions#3698 |
Transferring this issue to Azure CLI main repo as it is actually a general question.
For an example of declaring a positional argument:
There was a discussion #18869 about how to pass arguments to another command, because the leading dashes in arguments like Several workarounds are proposed in #18869, but we haven't decided which way to go. |
One other thing that is really difficult with the current setup is Yes, it is possible to go down to the lower level commands, such as |
Hi, Using azure cli with ssh extension v1.0.0 or higher, this seems to be implemented:
This is also briefly documented in the help, with example:
Thus I believe this issue could safely be closed now :) |
Extension name (the extension in question)
ssh
Description of issue (in as much detail as possible)
az ssh vm
(et al.) allows one to SSH; sometimes, we need to set up, e.g., SSH port-forwardings. It would be great ifaz ssh vm
understood--
and passed the remaining options through to SSH, directly. E.g.,--
is a fairly standard pattern for this sort of thing.The text was updated successfully, but these errors were encountered: