Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

"Request failed with error: Unexpected internal error". #28148

Open LNillox opened 10 months ago

LNillox commented 10 months ago

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

yonzhan commented 10 months ago

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

microsoft-github-policy-service[bot] commented 10 months ago

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

microsoft-github-policy-service[bot] commented 10 months ago

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

frdaz commented 10 months ago

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

marc-batto commented 7 months ago

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

earlb-cr2 commented 7 months ago

any progress here, experiencing the the same issue.

nbencini commented 6 months ago

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

s-baze commented 5 months ago

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

AlejandroTamboleo-AXPO commented 4 months ago

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

dmbuk commented 4 months ago

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

benjamin-stutz commented 3 months ago

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