-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
I log in with my ad_ue015297@fiberc.onmicrosoft.com account. Then, access to Azure Bastion fails
Related command
az network bastion rdp --name "bas-hub-public-prd-itn-1" --resource-group "rg-hub-bas-prd-itn-1" --target-resource-id "/subscriptions/5ade91eb-9af3-4135-8c42-32684bd7215e/resourceGroups/rg-spk-vmware-now-prd-itn-1/providers/Microsoft.Compute/virtualMachines/VMSPKNOWJPPR3" --enable-mfa
Errors
Request failed with error: Unexpected internal error
Issue script & Debug output
cli.knack.cli: Command arguments: ['network', 'bastion', 'rdp', '--name', 'bas-hub-public-prd-itn-1', '--resource-group', 'rg-hub-bas-prd-itn-1', '--target-resource-id', '/subscriptions/5ade91eb-9af3-4135-8c42-32684bd7215e/resourceGroups/rg-spk-vmware-now-prd-itn-1/providers/Microsoft.Compute/virtualMachines/VMSPKNOWJPPR5', '--enable-mfa', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01609578>, <function OutputProducer.on_global_arguments at 0x019570C8>, <function CLIQuery.on_global_arguments at 0x0197B2A8>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'network': ['azure.cli.command_modules.network', 'azure.cli.command_modules.privatedns', 'azext_bastion']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: network 0.632 120 480
cli.azure.cli.core: privatedns 0.022 14 60
cli.azure.cli.core: Total (2) 0.654 134 540
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: bastion 0.012 2 9 C:\Users\miche.azure\cliextensions\bastion
cli.azure.cli.core: Total (1) 0.012 2 9
cli.azure.cli.core: Loaded 134 groups, 549 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : network bastion rdp
cli.azure.cli.core: Command table: network bastion rdp
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03748078>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\miche.azure\commands\2025-12-31.12-33-43.network_bastion_rdp.24316.log'.
az_command_data_logger: command args: network bastion rdp --name {} --resource-group {} --target-resource-id {} --enable-mfa --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0375FC08>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0377D7A8>, <function register_cache_arguments..add_cache_arguments at 0x03790AC8>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x03790B18>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x01957118>, <function CLIQuery.handle_query_parameter at 0x0197B2F8>, <function register_ids_argument..parse_ids_arguments at 0x03790A28>]
az_command_data_logger: extension name: bastion
az_command_data_logger: extension version: 1.4.2
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\miche\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\miche.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0
msal.authority: openid_config("https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic', 'self_signed_tls_client_auth'], 'jwks_uri': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/kerberos', 'mtls_endpoint_aliases': {'token_endpoint': 'https://mtlsauth.microsoft.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/token'}, 'tls_client_certificate_bound_access_tokens': True, 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 04cd7834-035b-452c-a43d-322cd2b727be
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/bastionHosts/bas-hub-public-prd-itn-1?api-version=2024-01-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '8f6378ed-e63c-11f0-86af-00090faa0001'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network bastion rdp'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --target-resource-id --enable-mfa --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.81.0 (MSI) azsdk-python-core/1.35.0 Python/3.13.9 (Windows-11-10.0.26200-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/bastionHosts/bas-hub-public-prd-itn-1?api-version=2024-01-01 HTTP/1.1" 200 1987
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '1987'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': 'W/"7941b0a0-1422-4c37-863f-f9378a377c56"'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '2e3217b1-ff5d-4208-b3cd-f18daee2b1e0'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '3cb3349f-4e0d-4be8-b2a6-eddc75e35d55'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': 'bb86e306-640a-4652-8888-d1dc06536aae'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'ITALYNORTH:20251231T113344Z:3cb3349f-4e0d-4be8-b2a6-eddc75e35d55'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: C7D395F4F2E64161AAC366DE19C6CC7F Ref B: GVA201070811034 Ref C: 2025-12-31T11:33:44Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 31 Dec 2025 11:33:43 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"name":"bas-hub-public-prd-itn-1","id":"/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/bastionHosts/bas-hub-public-prd-itn-1","etag":"W/"7941b0a0-1422-4c37-863f-f9378a377c56"","type":"Microsoft.Network/bastionHosts","location":"italynorth","tags":{"BusinessUnit":"","Criticality":"","DataClassification":"","OpsTeam":"","WorkloadName":"","Ambiente":"Infra","ClasseRischio":"C1","CodiceApplicazione":"cu00003275","CriticitaBusiness":"B1","Funzione":"R&D.IT.O","NomeApplicazione":"AZR_LZ","Project":"CORE","Scope":"Dedicated","Struttura":"R&D.IT.O"},"zones":["2","3","1"],"properties":{"provisioningState":"Succeeded","dnsName":"bst-e095663a-8f7e-4028-81c5-549da068e6aa.bastion.azure.com","scaleUnits":5,"enableTunneling":true,"enableIpConnect":true,"enableFileCopy":true,"disableCopyPaste":false,"enableShareableLink":true,"enableKerberos":true,"enableSessionRecording":false,"publicUri":"/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/publicIPAddresses/pip-hub-bas-prd-itn-1","ipConfigurations":[{"name":"bastion-ipconfig","id":"/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/bastionHosts/bas-hub-public-prd-itn-1/bastionHostIpConfigurations/bastion-ipconfig","etag":"W/"7941b0a0-1422-4c37-863f-f9378a377c56"","type":"Microsoft.Network/bastionHosts/bastionHostIpConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/publicIPAddresses/pip-hub-bas-prd-itn-1"},"subnet":{"id":"/subscriptions/5b91d8c5-9e19-47e1-a547-b8908feed461/resourceGroups/rg-hub-bas-prd-itn-1/providers/Microsoft.Network/virtualNetworks/vnet-hub-bas-prd-itn-1/subnets/AzureBastionSubnet"}}}]},"sku":{"name":"Standard"}}
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0
msal.authority: openid_config("https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic', 'self_signed_tls_client_auth'], 'jwks_uri': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/257a5598-84de-4579-9756-57f65f08a6c0/kerberos', 'mtls_endpoint_aliases': {'token_endpoint': 'https://mtlsauth.microsoft.com/257a5598-84de-4579-9756-57f65f08a6c0/oauth2/v2.0/token'}, 'tls_client_certificate_bound_access_tokens': True, 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 1cfb31f3-8ec9-4f26-886f-65fdc8eede6a
cli.azext_bastion.custom: Response eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlBjWDk4R1g0MjBUMVg2c0JEa3poUW1xZ3dNVSIsImtpZCI6IlBjWDk4R1g0MjBUMVg2c0JEa3poUW1xZ3dNVSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8yNTdhNTU5OC04NGRlLTQ1NzktOTc1Ni01N2Y2NWYwOGE2YzAvIiwiaWF0IjoxNzY3MTgwMjMzLCJuYmYiOjE3NjcxODAyMzMsImV4cCI6MTc2NzE4NTI4NSwiYWNyIjoiMSIsImFjcnMiOlsicDEiXSwiYWlvIjoiQVhRQWkvOGFBQUFBT255UHI2aWhnVmUydVd2THFmMFFOT0F0K2tqaUEvbkhHUFBJZzhvSU9hWnRsUnNzYXFiUzBPL29zRXp4OG05M1JmV3BtWHBvRkgzNTNERkIvSkw1RXVpY2JjSHlJb25QQlkrdXkvSmdDc25CVnNUbmNEOGhIWHhGTWxaRnJKOTBkS00zeXl4azlyWUgxdzFBSkIvd1JBPT0iLCJhbXIiOlsicHdkIiwibWZhIl0sImFwcGlkIjoiMDRiMDc3OTUtOGRkYi00NjFhLWJiZWUtMDJmOWUxYmY3YjQ2IiwiYXBwaWRhY3IiOiIwIiwiZGV2aWNlaWQiOiIyNDI5OTg1Zi0xMDZkLTRiY2ItYjE2YS1iZWUyMzcwNmJhN2UiLCJmYW1pbHlfbmFtZSI6IkZ1cmNpIiwiZ2l2ZW5fbmFtZSI6Ik1pY2hlbGUiLCJncm91cHMiOlsiYzJkODZhMTUtN2RiYS00NGZjLTlkMDQtZjA2ZTBlMGM1MzhlIiwiMzM2MTM0NGItYTcyNS00NzQ4LThmMGMtYTU4NmFlNzkwNmE0Il0sImlkdHlwIjoidXNlciIsImlwYWRkciI6IjE1MS40Ny4xMTcuMTM0IiwibmFtZSI6Ik1pY2hlbGUgRnVyY2kiLCJvaWQiOiIzZjA4NGRmNi1jYTY1LTQ3NTAtOTJkNC1kOGM1NDRkMzVmOTIiLCJwdWlkIjoiMTAwMzIwMDU2RkI0NjRCNCIsInB3ZF91cmwiOiJodHRwczovL2dvLm1pY3Jvc29mdC5jb20vZndsaW5rLz9saW5raWQ9MjIyNDE5OCIsInJoIjoiMS5BYTRBbUZWNkpkNkVlVVdYVmxmMlh3aW13RVpJZjNrQXV0ZFB1a1Bhd2ZqMk1CT3RBUC11QUEuIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwic2lkIjoiMDBiYmRkZDktZDcwYy0yNmQwLTQ2MTYtM2RkODY4MGYyM2EyIiwic3ViIjoiSVJUT3dwNEtHLXQzcmw4dXYxbEZLeDFCRGFOVW1KRm5CVGNPWHMyVzlIUSIsInRpZCI6IjI1N2E1NTk4LTg0ZGUtNDU3OS05NzU2LTU3ZjY1ZjA4YTZjMCIsInVuaXF1ZV9uYW1lIjoiYWRfdWUwMTUyOTdAZmliZXJjLm9ubWljcm9zb2Z0LmNvbSIsInVwbiI6ImFkX3VlMDE1Mjk3QGZpYmVyYy5vbm1pY3Jvc29mdC5jb20iLCJ1dGkiOiI5LS1hU2pRR1BVMkdoemt1SUV6Y0FRIiwidmVyIjoiMS4wIiwid2lkcyI6WyJiNzlmYmY0ZC0zZWY5LTQ2ODktODE0My03NmIxOTRlODU1MDkiXSwieG1zX2FjdF9mY3QiOiIzIDUiLCJ4bXNfZnRkIjoiNXZZdF9OVVZaVWUtaGtkMnNQU0RQWU03UzJMSmpsdHB0anBYTnNhdGZ4Z0JaWFZ5YjNCbGQyVnpkQzFrYzIxeiIsInhtc19pZHJlbCI6IjIgMSIsInhtc19zdWJfZmN0IjoiMyA0IiwieG1zX3RjZHQiOjE3MTYyMTE4NjF9.EjcU72Eec8vMMjmHYhTT5jyIcylKgV7RbzwCRPPPupw-5mtK0ZAFW65yS_H1px5U9Ptgkaf8_8ofNw6AEu7enZIo05z3rsep2vF9NvYoSi0UVWOmCH9C4fXuiZrr4CqHVuMNXqSJJx9vSNwaSkBGchbTzknDWaOQdzQX3Wud5xlHW_TV4p9de-AsY22shOzrpghxWZXxbJtJrvNHQqEAw4jHgrnTu4LyRZvPMdadNiPKPMnS3dWupeITtAxvM_lIcSh_whQXdVgBtDk9QT263lHIvrnSiUvLpilMv6FsdxtrOenXR0hLAKFUVK6PXWZEwS3-BZrelRIdN1hAY4VjUw
urllib3.connectionpool: Starting new HTTPS connection (1): bst-e095663a-8f7e-4028-81c5-549da068e6aa.bastion.azure.com:443
urllib3.connectionpool: https://bst-e095663a-8f7e-4028-81c5-549da068e6aa.bastion.azure.com:443 "GET /api/rdpfile?resourceId=/subscriptions/5ade91eb-9af3-4135-8c42-32684bd7215e/resourceGroups/rg-spk-vmware-now-prd-itn-1/providers/Microsoft.Compute/virtualMachines/VMSPKNOWJPPR5&format=rdp&rdpport=3389&enablerdsaad=True HTTP/1.1" 500 None
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "C:\Users\miche.azure\cliextensions\bastion\azext_bastion\custom.py", line 357, in rdp_bastion_host
handle_error_response(response)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\miche.azure\cliextensions\bastion\azext_bastion\custom.py", line 403, 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
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x037481B8>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.323 seconds (init: 0.349, invoke: 1.974)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4009 in cache file under C:\Users\miche.azure\telemetry\20251231123344670
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\miche.azure C:\Users\miche.azure\telemetry\20251231123344670"
telemetry.process: Return from creating process 30764
telemetry.main: Finish creating telemetry upload process.
Expected behavior
I expect the VM window to open
Environment Summary
azure-cli 2.81.0
core 2.81.0
telemetry 1.1.0
Extensions:
bastion 1.4.2
Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\miche.azure'
Extensions directory 'C:\Users\miche.azure\cliextensions'
Python (Windows) 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:00:05) [MSC v.1944 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response