Bastion ssh with AAD auth not working
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az network bastion ssh
Errors:
Command group 'network bastion' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
C:\Users\<username>\AppData\Local\Temp\aadsshcertxnty0ib4 contains sensitive information (id_rsa, id_rsa.pub). Please delete once this certificate is no longer being used.
Generated SSH certificate C:\Users\<username>\AppData\Local\Temp\aadsshcertxnty0ib4\id_rsa.pub-aadcert.pub is valid until 2022-10-12 15:51:23 in local time.
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 "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/network/custom.py", line 8485, in _start_tunnel
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/network/tunnel.py", line 184, in start_server
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/network/tunnel.py", line 117, in _listen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/network/tunnel.py", line 104, in _get_auth_token
msrestazure.azure_exceptions.CloudError: Tunneling is disabled
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az network bastion ssh --name {} --resource-group {} --target-resource-id {} --auth-type "AAD" --debug
Expected Behavior
Logged in with ssh to Ubuntu VM via Bastion using AAD credentials. I tried connecting to the same VM using AAD credentials with - az ssh vm --name {} --resource-group {}
and that worked OK.
Environment Summary
Windows-10-10.0.22621-SP0
Python 3.10.5
Installer: MSI
azure-cli 2.41.0
Extensions:
ssh 1.1.2
Dependencies:
msal 1.20.0b1
azure-mgmt-resource 21.1.0b1
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Enable Azure AD login with Bastion on exisitng VM
I've been tasked with enabling login with Azure AD on all of our existing servers. I've followed the howto-vm-sign-in-azure-ad-windows guide on ...
Read more >Does Azure Bastion with AAD Credentials - Stack Overflow
Azure Active Directory (AAD) authentication: Azure Bastion does not currently support authentication using AAD-based (cloud) users.
Read more >Azure – Use of native client to connect to Azure Bastion is here
Login on the virtual machine through Bastion with native client using a local account is not supported; SSH connection using the private key ......
Read more >Azure Bastion with native tools & AAD
Authenticate with your Azure AD credentials and access using native SSH and ... PowerShell cmdlets for Azure Bastion are available but are not...
Read more >Native RDP / SSH with Azure Bastion - Florin Loghiade
To tell it in a nutshell, Azure Bastion is a managed jump server which ... At the time of writing, this solution will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
route to CXP team
Some more useful error messages might have been helpful 😃