Skip to content

Allow modifying port for interactive login: az login ... --port 1234 #24626

@megakoresh

Description

@megakoresh

Related command

az login

Is your feature request related to a problem? Please describe.

When you use VSCode remote development extension, it is not able to detect Azure CLI port and automatically forward it when az login is used with interactive login (even though it's able to intercept the xdg calls and open the browser tab to login). This means I have to manully copy the callback port and forward it every time I have to login which is a pain when you have many accounts.

Describe the solution you'd like

To solve this there could be a configuration option which would let us set a static port and we could then pre-forward it in the VSCode settings. GG EZ.

Describe alternatives you've considered

Well, I could open a feature request to VSCode to actually detect the dynamic port from the az cli commands, but I think this solution is much simpler and easier to implement.

Additional context

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions