azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

"Request failed with error: Unexpected internal error".

Open LNillox opened this issue 2 years ago • 7 comments

Describe the bug

Hello,

Since the beginning of 2024, we've been unable to connect to our Azure VMs via the Bastion native client. However, we haven't made any changes to our script and everything was working perfectly in 2023

We couldn't find any information on the net about this error !!!! Do you have any idea about the origin of this problem ?

Thank you for your feedback,

Sincerely,

Laurent

Related command

"az network bastion rdp --name "xxxx" --resource-group "xxxx" --target-resource-id "/subscriptions/xxxx"

Errors

"Request failed with error: Unexpected internal error".

Issue script & Debug output

The command "az network bastion rdp -- debug" returns the following error:

urllib3.connectionpool: Starting new HTTPS connection (1): xxxxxxxxx.bastion.azure.com:443 urllib3.connectionpool: https://xxxxxxxxxxx.bastion.azure.com:443 "GET /api/rdpfile?resourceId=/subscriptions/xxxxxxxxx/providers/Microsoft.Compute/virtualMachines/xxxxxxxx&format=rdp&rdpport=3389&enablerdsaad=False HTTP/1.1" 500 None

Expected behavior

We just hope to be able to connect to our machine, as we did in 2023 :)

Environment Summary


PS C:\Windows\system32> az --version azure-cli 2.55.0 core 2.55.0 telemetry 1.1.0 Extensions: bastion 0.3.0 Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2

Additional context

No response

LNillox avatar Jan 08 '24 08:01 LNillox

Thank you for opening this issue, we will look into it.

yonzhan avatar Jan 08 '24 08:01 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bastionsuppgithub.

Exactly same problem. please no re-root the post to another appropriate Team, there is not follow. thanks

frdaz avatar Jan 09 '24 06:01 frdaz

Is a solution found for this issue yet? I'm getting the same error with a newly deployed setup of ours. Thanks

marc-batto avatar Apr 08 '24 09:04 marc-batto

any progress here, experiencing the the same issue.

earlb-cr2 avatar Apr 09 '24 12:04 earlb-cr2

I am experiencing the same issue when trying to connect to RDP via Azure bastion

nbencini avatar May 13 '24 16:05 nbencini

Any updates on this, experiencing the same issue. azure-cli 2.61.0

s-baze avatar Jun 05 '24 13:06 s-baze

Is this the same you are guys experiencing? image In the GUI Bastion works

AlejandroTamboleo-AXPO avatar Jul 09 '24 14:07 AlejandroTamboleo-AXPO

the same here, latest Az and Bastion extension.

File "C:\Users\XXX.azure\cliextensions\bastion\azext_bastion\custom.py", line 343, in handle_error_response raise ClientRequestError("Request failed with error: " + errorMessage) azure.cli.core.azclierror.ClientRequestError: Request failed with error: Unexpected internal error

cli.azure.cli.core.azclierror: Request failed with error: Unexpected internal error az_command_data_logger: Request failed with error: Unexpected internal error

dmbuk avatar Jul 17 '24 10:07 dmbuk

For me this error message also occurrs if the permissions are not set correctly. Ensure that the user who tries to login has Read Permission on the Bastion object, the VM and the NIC of the VM. Additionally the User needs Virtual Machine Administrator Login or Virtual Machine User Login permission on the VM object

Maybe the error message could be made more clear in case this happens because of permissions

benjamin-stutz avatar Aug 20 '24 15:08 benjamin-stutz