question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bastion rdp vmss support

See original GitHub issue

This is autogenerated. Please review and update as needed.

Unable to use az network bastion rdp to connect to vmss instance

Command Name az network bastion rdp

Errors:

The command failed with an unexpected error. Here is the traceback:
cannot import name 'WinDLL' from 'ctypes' (/opt/az/lib/python3.10/ctypes/__init__.py)
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/network/custom.py", line 8457, in rdp_bastion_host
    from ._process_helper import launch_and_wait
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/network/_process_helper.py", line 9, in <module>
    from ctypes import WinDLL, c_int, c_size_t, Structure, WinError, sizeof, pointer
ImportError: cannot import name 'WinDLL' from 'ctypes' (/opt/az/lib/python3.10/ctypes/__init__.py)

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az network bastion rdp --name {} --resource-group {} --target-resource-id {}

Expected Behavior

Environment Summary

Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31, Ubuntu 20.04.4 LTS
Python 3.10.5
Installer: DEB

azure-cli 2.38.0

Extensions:
account 0.2.3

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liorbpcommented, Jul 21, 2022

@lovigano this is a bit tricky, you’re probably using the Azure Cloud Shell connector for Windows Terminal. This isn’t really the native az cli for Windows. You would need to download az cli and there the bastion RDP works without errors.

0reactions
navba-MSFTcommented, Jul 27, 2022

@lovigano The action is currently pending on you to test on powershell with az cli (on Windows machine). We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Bastion FAQ | Microsoft Learn
No, Azure Bastion doesn't currently support private link. ... The Bastion service will open the RDP/SSH session/connection to your virtual ...
Read more >
How To RDP/SSH Into Azure VMSS VM Instances - ochzhen
In this post we will review how to connect to Virtual Machine Scale Set instances using RDP for Windows and SSH for Linux....
Read more >
5 Connecting to VM Scale Sets (VMSS) using Azure Bastion
In this post, we will see how to connect to the instances of a Virtual Machine Scale Set (VMSS). Note that in the...
Read more >
Azure Bastion Native Client Support With the Windows RDP ...
In this article, Azure expert Aidan Finn shows you how to log into VMs protected by an Azure Bastion Host using the native...
Read more >
Deploy Azure Bastion (Preview) Using an ARM Template
Azure Bastion is a PaaS service which provides an RDP or SSH connectivity to VMs ... Good news, in addition of a Virtual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found