Using "az network bastion rdp" to connect to a VMSS instance throws errors. #6478
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
CXP Attention
This issue is handled by CXP team.
Network - Bastion
Network
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Using
az network bastion rdp
to connect to a VMSS instance throws errors.Related command
az network bastion rdp --name "" --resource-group "" --target-resource-id ""
and
az network bastion rdp --name "" --resource-group "" --target-resource-id "" --disable-gateway
Errors
If used without
--disable-gateway
:"Request to EncodingReservedUnitTypes v2 API endpoint failed."
Used with
--disable-gateway
: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 "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\custom.py", line 335, in _start_tunnel
tunnel_server.start_server()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 194, in start_server
self._listen()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 123, in _listen
auth_token = self._get_auth_token()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 110, in _get_auth_token
raise exp
msrestazure.azure_exceptions.CloudError: java.lang.NullPointerException
Issue script & Debug output
Used without
--disable-gateway
:az network bastion rdp --name "" --resource-group "" --target-resource-id "" --debug
cli.knack.cli: Command arguments: ['network', 'bastion', 'rdp', '--name', '', '--resource-group', '', '--target-resource-id', '', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01E7B5C8>, <function OutputProducer.on_global_arguments at 0x0207C808>, <function CLIQuery.on_global_arguments at 0x02098460>]
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.581 115 453
cli.azure.cli.core: privatedns 0.007 14 66
cli.azure.cli.core: Total (2) 0.589 129 519
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.015 2 9 C:\Users\francisco.nabas.azure\cliextensions\bastion
cli.azure.cli.core: Total (1) 0.015 2 9
cli.azure.cli.core: Loaded 129 groups, 528 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 0x0424C658>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\francisco.nabas.azure\commands\2023-07-05.14-07-43.network_bastion_rdp.13488.log'.
az_command_data_logger: command args: network bastion rdp --name {} --resource-group {} --target-resource-id {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x042746E8>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x042B2610>, <function register_cache_arguments..add_cache_arguments at 0x042B2808>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0207C850>, <function CLIQuery.handle_query_parameter at 0x020984A8>, <function register_ids_argument..parse_ids_arguments at 0x042B27C0>]
az_command_data_logger: extension name: bastion
az_command_data_logger: extension version: 0.2.4
Command group 'az network' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\francisco.nabas\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\francisco.nabas.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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/kerberos', 'tenant_region_scope': 'NA', '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? False
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 38798f55-0001-4f91-9e47-6de56437bf8e
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/?api-version=2022-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': '743a4ed1-1b56-11ee-9a0a-2cdb07544f92'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network bastion rdp'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --target-resource-id --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.50.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.22621-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/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/?api-version=2022-01-01 HTTP/1.1" 200 None
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: 'Transfer-Encoding': 'chunked'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Content-Encoding': 'gzip'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': 'W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"'
cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '62ee46ce-edec-413d-b426-5bef3e71c035'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'a35a0ba2-0099-47dd-82c8-27af4ecd3c80'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': 'eb2a47e5-3faa-4496-89e6-2035106e2e99'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11984'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20230705T170759Z:a35a0ba2-0099-47dd-82c8-27af4ecd3c80'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 05 Jul 2023 17:07:59 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"name": "",
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/",
"etag": "W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"",
"type": "Microsoft.Network/bastionHosts",
"location": "southeastasia",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"dnsName": "bst-27d20eba-9e1c-4ed6-bba2-fb90ee863389.bastion.azure.com",
"scaleUnits": 2,
"enableTunneling": true,
"enableIpConnect": false,
"disableCopyPaste": false,
"enableShareableLink": false,
"enableKerberos": false,
"ipConfigurations": [
{
"name": "IpConf",
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts//bastionHostIpConfigurations/IpConf",
"etag": "W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"",
"type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/publicIPAddresses/sea-ip"
},
"subnet": {
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/virtualNetworks/sea/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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/kerberos', 'tenant_region_scope': 'NA', '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? False
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 048aebda-6b1d-4a9b-9385-0f94b3085c2d
cli.azext_bastion.custom: Response eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81OTllNTFkNi0yZjhjLTQzNDctOGU1OS0xZjc5NWE1MWE5OGMvIiwiaWF0IjoxNjg4NTc1MDI5LCJuYmYiOjE2ODg1NzUw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MlVparvk3Za5jqLMzX6bLCOVKDL-7ugnzh-g
urllib3.connectionpool: Starting new HTTPS connection (1): bst-27d20eba-9e1c-4ed6-bba2-fb90ee863389.bastion.azure.com:443
urllib3.connectionpool: https://bst-27d20eba-9e1c-4ed6-bba2-fb90ee863389.bastion.azure.com:443 "GET /api/rdpfile?resourceId=&format=rdp&rdpport=3389&enablerdsaad=False 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 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, 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 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\custom.py", line 282, in rdp_bastion_host
raise ClientRequestError("Request to EncodingReservedUnitTypes v2 API endpoint failed.")
azure.cli.core.azclierror.ClientRequestError: Request to EncodingReservedUnitTypes v2 API endpoint failed.
cli.azure.cli.core.azclierror: Request to EncodingReservedUnitTypes v2 API endpoint failed.
az_command_data_logger: Request to EncodingReservedUnitTypes v2 API endpoint failed.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0424C778>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 6.148 seconds (init: 0.392, invoke: 5.756)
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 3547 in cache
telemetry.check: Returns Positive.
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\francisco.nabas.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.
NativeCommandExitException: Program "az.cmd" ended with non-zero exit code: 1.
Used with
--disable-gateway
az network bastion rdp --name "" --resource-group "" --target-resource-id "" --disable-gateway --debug
cli.knack.cli: Command arguments: ['network', 'bastion', 'rdp', '--name', '', '--resource-group', '', '--target-resource-id', '', '--disable-gateway', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0200B5C8>, <function OutputProducer.on_global_arguments at 0x0210D808>, <function CLIQuery.on_global_arguments at 0x02228460>]
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.615 115 453
cli.azure.cli.core: privatedns 0.007 14 66
cli.azure.cli.core: Total (2) 0.621 129 519
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.016 2 9 C:\Users\francisco.nabas.azure\cliextensions\bastion
cli.azure.cli.core: Total (1) 0.016 2 9
cli.azure.cli.core: Loaded 129 groups, 528 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 0x043BD658>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\francisco.nabas.azure\commands\2023-07-05.14-11-27.network_bastion_rdp.11280.log'.
az_command_data_logger: command args: network bastion rdp --name {} --resource-group {} --target-resource-id {} --disable-gateway --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x043E46E8>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04422610>, <function register_cache_arguments..add_cache_arguments at 0x04422808>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0210D850>, <function CLIQuery.handle_query_parameter at 0x022284A8>, <function register_ids_argument..parse_ids_arguments at 0x044227C0>]
az_command_data_logger: extension name: bastion
az_command_data_logger: extension version: 0.2.4
Command group 'az network' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\francisco.nabas\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\francisco.nabas.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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/kerberos', 'tenant_region_scope': 'NA', '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? False
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: b91a9058-1082-4e4c-9d3c-3cc92c4107bf
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/?api-version=2022-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': 'f9a71fd2-1b56-11ee-91fd-2cdb07544f92'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network bastion rdp'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --target-resource-id --disable-gateway --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.50.0 (MSI) (AAZ) azsdk-python-core/1.26.0 Python/3.10.10 (Windows-10-10.0.22621-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/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/?api-version=2022-01-01 HTTP/1.1" 200 None
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: 'Transfer-Encoding': 'chunked'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Content-Encoding': 'gzip'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': 'W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"'
cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '4ecbf461-531a-4883-9353-4427038ab54d'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'e538e4d6-a055-48ae-aac0-f39f8ab43e1a'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': '27f80a05-133f-40c8-8b1f-afe6fae73470'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11989'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20230705T171143Z:e538e4d6-a055-48ae-aac0-f39f8ab43e1a'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 05 Jul 2023 17:11:43 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"name": "",
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts/",
"etag": "W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"",
"type": "Microsoft.Network/bastionHosts",
"location": "southeastasia",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"dnsName": "bst-27d20eba-9e1c-4ed6-bba2-fb90ee863389.bastion.azure.com",
"scaleUnits": 2,
"enableTunneling": true,
"enableIpConnect": false,
"disableCopyPaste": false,
"enableShareableLink": false,
"enableKerberos": false,
"ipConfigurations": [
{
"name": "IpConf",
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/bastionHosts//bastionHostIpConfigurations/IpConf",
"etag": "W/"19bbb508-3d07-4efe-b596-6a587d6b1b02"",
"type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/publicIPAddresses/sea-ip"
},
"subnet": {
"id": "/subscriptions/2c72697b-35db-4afc-b649-7c278ccc3572/resourceGroups//providers/Microsoft.Network/virtualNetworks/sea/subnets/AzureBastionSubnet"
}
}
}
]
},
"sku": {
"name": "Standard"
}
}
cli.azext_bastion.tunnel: Creating a socket on port: 0
cli.azext_bastion.tunnel: Setting socket options
cli.azext_bastion.tunnel: Binding to socket on local address and port
cli.azext_bastion.tunnel: Auto-selecting port: 57977
cli.azext_bastion.tunnel: Finished initialization
cli.azext_bastion.custom: Platform architecture: ('32bit', 'WindowsPE')
cli.azext_bastion.custom: System Root: C:\Windows
cli.azext_bastion.custom: Attempting to run rdp from path C:\Windows\System32\mstsc.exe
cli.azext_bastion._process_helper: Waiting for process 17356
cli.azext_bastion._process_helper: Waiting for process 16416
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/599e51d6-2f8c-4347-8e59-1f795a51a98c/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/599e51d6-2f8c-4347-8e59-1f795a51a98c/kerberos', 'tenant_region_scope': 'NA', '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? False
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 770fd2dd-024f-4a57-bbed-683d71f9226e
cli.azext_bastion.tunnel: Content: {'resourceId': '', 'protocol': 'tcptunnel', 'workloadHostPort': 3389, 'aztoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81OTllNTFkNi0yZjhjLTQzNDctOGU1OS0xZjc5NWE1MWE5OGMvIiwiaWF0IjoxNjg4NTc1MDI5LCJuYmYiOjE2ODg1NzUwMjksImV4cCI6MTY4ODU4MDM4MiwiYWNyIjoiMSIsImFpbyI6IkFWUUFxLzhUQUFBQXdXZ2RxVU92blBLQVdZT2VjQ1E3Rm95VGM3ckthNVNLc0I0Tm9IQVNscW5E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https://bst-27d20eba-9e1c-4ed6-bba2-fb90ee863389.bastion.azure.com:443 "POST /api/tokens HTTP/1.1" 403 None
msrest.exceptions: java.lang.NullPointerException
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 "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\custom.py", line 335, in _start_tunnel
tunnel_server.start_server()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 194, in start_server
self._listen()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 123, in _listen
auth_token = self._get_auth_token()
File "C:\Users\francisco.nabas.azure\cliextensions\bastion\azext_bastion\tunnel.py", line 110, in _get_auth_token
raise exp
msrestazure.azure_exceptions.CloudError: java.lang.NullPointerException
cli.azext_bastion.tunnel: Nothing to clean up.
cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x043E1EC8>, <function _x509_from_base64_to_hex_transform at 0x043E1F10>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x043BD778>]
az_command_data_logger: exit code: 0
cli.main: Command ran in 22.994 seconds (init: 0.406, invoke: 22.588)
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 3443 in cache
telemetry.check: Negative: The C:\Users\francisco.nabas.azure\telemetry.txt was modified at 2023-07-05 14:07:48.744732, which in less than 600.000000 s
Expected behavior
Connect to the VMSS instance
Environment Summary
azure-cli 2.50.0
core 2.50.0
telemetry 1.0.8
Extensions:
bastion 0.2.4
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\francisco.nabas.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
Also tested with azure-cli 2.47 and bastion extension 0.2.3
The text was updated successfully, but these errors were encountered: