Skip to content
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

{Bastion} az network bastion rdp fails with NullPointerException #6514

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

navba-MSFT
Copy link
Contributor

fixes #6478

az network bastion rdp --name "" --resource-group "" --target-resource-id "" --disable-gateway fails with below error:

Exception in thread Thread-1 (_start_tunnel):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\custom.py", line 335, in _start_tunnel
tunnel_server.start_server()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 194, in start_server
self._listen()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 123, in _listen
auth_token = self._get_auth_token()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 110, in _get_auth_token
raise exp
msrestazure.azure_exceptions.CloudError: java.lang.NullPointerException

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 13, 2023

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd
Copy link

Hi @navba-MSFT,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 13, 2023

Thank you for your contribution! We will review the pull request and get back to you soon.

@navba-MSFT
Copy link
Contributor Author

@necusjz Could you please review this once you get a chance ?

Copy link
Member

@necusjz necusjz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@navba-MSFT, if you wanna release a new version including this fix, please update HISTORY.rst and setup.py as well.

@navba-MSFT navba-MSFT changed the title az network bastion rdp fails with NullPointerException {Bastion} az network bastion rdp fails with NullPointerException Jul 19, 2023
@necusjz necusjz merged commit 42d5df2 into Azure:main Jul 19, 2023
14 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ bastion ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=73717&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Network
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using "az network bastion rdp" to connect to a VMSS instance throws errors.
4 participants