Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az Network Bastion RDP --configure switch #7878

Open
brucanada opened this issue Aug 13, 2024 · 4 comments
Open

Az Network Bastion RDP --configure switch #7878

brucanada opened this issue Aug 13, 2024 · 4 comments
Assignees
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Network - Bastion Network question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@brucanada
Copy link

brucanada commented Aug 13, 2024

Describe the bug

Az network bastion RDP does not open the --configure option when conmecting via --target-ip-address. It only creates the RDP file and open the configuration when using --target-resource-id. I am not sure if this is a bug or still needs to be implemented.

Related command

az network bastion rdp --name { } --resource-group { } --target-ip-address { } --configure

Errors

No messages

Issue script & Debug output

PS C:\Users\UserName> az network bastion rdp --name BastionName --resource-group RgName --target-ip-address 10.0.0.40 --configure --debug
cli.knack.cli: Command arguments: ['network', 'bastion', 'rdp', '--name', 'BastionName', '--resource-group', 'RgName', '--target-ip-address', '10.0.0.40', '--configure', '--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 0x00000245B787B7E0>, <function OutputProducer.on_global_arguments at 0x00000245B7A06020>, <function CLIQuery.on_global_arguments at 0x00000245B7A33BA0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command.
cli.azure.cli.core: Command index has been invalidated.
cli.azure.cli.core: No module found from index for '['network', 'bastion', 'rdp', '--name', 'BastionName', '--resource-group', 'RgName', '--target-ip-address', '10.0.0.40', '--configure', '--debug']'
cli.azure.cli.core: Loading all modules and extensions
cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: acr 0.190 36 149
cli.azure.cli.core: acs 0.038 14 76
cli.azure.cli.core: advisor 0.007 3 6
cli.azure.cli.core: ams 0.006 22 100
cli.azure.cli.core: apim 0.010 14 69
cli.azure.cli.core: appconfig 0.003 9 47
cli.azure.cli.core: appservice 0.104 79 270
cli.azure.cli.core: aro 0.026 1 10
cli.azure.cli.core: backup 0.024 16 60
cli.azure.cli.core: batch 0.036 34 102
cli.azure.cli.core: batchai 0.005 10 30
cli.azure.cli.core: billing 0.019 19 53
cli.azure.cli.core: botservice 0.003 12 42
cli.azure.cli.core: cdn 0.149 8 50
cli.azure.cli.core: cloud 0.005 1 7
cli.azure.cli.core: cognitiveservices 0.004 10 33
cli.azure.cli.core: compute_recommender 0.004 1 1
cli.azure.cli.core: config 0.002 2 7
cli.azure.cli.core: configure 0.003 2 5
cli.azure.cli.core: consumption 0.028 8 9
cli.azure.cli.core: container 0.017 1 11
cli.azure.cli.core: containerapp 0.136 37 123
cli.azure.cli.core: cosmosdb 0.023 58 199
cli.azure.cli.core: databoxedge 0.012 5 28
cli.azure.cli.core: dla 0.006 23 62
cli.azure.cli.core: dls 0.005 7 41
cli.azure.cli.core: dms 0.003 3 22
cli.azure.cli.core: eventgrid 0.004 25 96
cli.azure.cli.core: eventhubs 0.018 13 19
cli.azure.cli.core: extension 0.002 1 7
cli.azure.cli.core: feedback 0.002 1 2
cli.azure.cli.core: find 0.002 1 1
cli.azure.cli.core: hdinsight 0.012 8 39
cli.azure.cli.core: identity 0.005 2 11
cli.azure.cli.core: interactive 0.001 1 1
cli.azure.cli.core: iot 0.144 19 82
cli.azure.cli.core: keyvault 0.013 20 113
cli.azure.cli.core: kusto 0.005 3 14
cli.azure.cli.core: lab 0.004 11 34
cli.azure.cli.core: managedservices 0.003 3 8
cli.azure.cli.core: maps 0.004 5 13
cli.azure.cli.core: marketplaceordering 0.007 1 2
cli.azure.cli.core: monitor 0.290 18 61
cli.azure.cli.core: mysql 0.179 15 53
cli.azure.cli.core: netappfiles 0.062 8 17
cli.azure.cli.core: network 0.095 117 459
cli.azure.cli.core: policyinsights 0.025 9 17
cli.azure.cli.core: privatedns 0.030 14 60
cli.azure.cli.core: profile 0.004 2 8
cli.azure.cli.core: rdbms 0.033 49 202
cli.azure.cli.core: redis 0.004 7 38
cli.azure.cli.core: relay 0.038 7 8
cli.azure.cli.core: resource 0.017 51 231
cli.azure.cli.core: role 0.003 17 61
cli.azure.cli.core: search 0.017 7 19
cli.azure.cli.core: security 0.025 48 98
cli.azure.cli.core: servicebus 0.021 12 15
cli.azure.cli.core: serviceconnector 0.054 20 309
cli.azure.cli.core: servicefabric 0.019 27 80
cli.azure.cli.core: signalr 0.003 9 34
cli.azure.cli.core: sql 0.020 56 215
cli.azure.cli.core: sqlvm 0.032 4 20
cli.azure.cli.core: storage 0.089 59 273
cli.azure.cli.core: synapse 0.015 54 246
cli.azure.cli.core: util 0.005 3 7
cli.azure.cli.core: vm 0.056 58 269
cli.azure.cli.core: Total (66) 2.230 1220 4854
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: bastion 0.017 2 9 C:\Users\UserName.azure\cliextensions\bastion
cli.azure.cli.core: Total (1) 0.017 2 9
cli.azure.cli.core: Loaded 1207 groups, 4863 commands.
cli.azure.cli.core: Updated command index in 0.003 seconds.
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x00000245B87E8D60>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\UserName.azure\commands\2024-08-13.09-44-07.network_bastion_rdp.13728.log'.
az_command_data_logger: command args: network bastion rdp --name {} --resource-group {} --target-ip-address {} --configure --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x00000245B9392FC0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x00000245B9393060>, <function register_cache_arguments..add_cache_arguments at 0x00000245B93931A0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x00000245BBB94540>]
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x00000245B7A060C0>, <function CLIQuery.handle_query_parameter at 0x00000245B7A33C40>, <function register_ids_argument..parse_ids_arguments at 0x00000245B9393100>]
az_command_data_logger: extension name: bastion
az_command_data_logger: extension version: 1.0.1
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\UserName\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\UserName.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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f
msal.authority: openid_config("https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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? 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_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Found 1 RTs matching {'environment': 'login.microsoftonline.com', 'home_account_id': '.7dcf6c5f-f26d-4d0b-b711-6d11b794877f', 'family_id': '1'}
msal.telemetry: Generate or reuse correlation_id: b3b6c970-378e-4104-95b6-16b987d122be
msal.application: Cache attempts an RT
urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443
urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/token HTTP/1.1" 200 5430
msal.token_cache: event={
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"data": {
"claims": "{"access_token": {"xms_cc": {"values": ["CP1"]}}}",
"refresh_token": "
",
"scope": [
"offline_access",
"openid",
"https://management.core.windows.net//.default",
"profile"
]
},
"environment": "login.microsoftonline.com",
"grant_type": "refresh_token",
"params": null,
"response": {
"access_token": "",
"client_info": "eyJ1aWQiOiIxOGYxMGM1My01MDVmLTQ1ZTgtODg3Ny05ZjAzZmM5ZDc4YzciLCJ1dGlkIjoiN2RjZjZjNWYtZjI2ZC00ZDBiLWI3MTEtNmQxMWI3OTQ4NzdmIn0",
"expires_in": 3789,
"ext_expires_in": 3789,
"foci": "1",
"id_token": "
",
"scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default",
"token_type": "Bearer"
},
"scope": [
"https://management.core.windows.net//user_impersonation",
"https://management.core.windows.net//.default"
],
"skip_account_creation": true,
"token_endpoint": "https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/token"
}
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/bastionHosts/BastionName?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': '4093dd28-5993-11ef-bbc4-0c3796135abc'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network bastion rdp'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --target-ip-address --configure --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.63.0 (MSI) azsdk-python-core/1.28.0 Python/3.11.8 (Windows-10-10.0.22631-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/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/bastionHosts/BastionName?api-version=2022-01-01 HTTP/1.1" 200 1710
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': '1710'
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/"99264ae2-e24c-4c8f-aff4-ec718d5311d4"'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '1b08a767-ab72-4493-9a84-1da2cd0d08fe'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '108b097b-dc3e-45d9-93f3-269d6c9331ad'
cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': '47ff3940-c9c1-457e-801e-906d29b4ccde'
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': 'CANADACENTRAL:20240813T164414Z:108b097b-dc3e-45d9-93f3-269d6c9331ad'
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: 565E18DE5CD74E71BB7A79137548B46A Ref B: CO6AA3150218049 Ref C: 2024-08-13T16:44:14Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Tue, 13 Aug 2024 16:44:14 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"name": "BastionName",
"id": "/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/bastionHosts/BastionName",
"etag": "W/"99264ae2-e24c-4c8f-aff4-ec718d5311d4"",
"type": "Microsoft.Network/bastionHosts",
"location": "canadacentral",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"dnsName": "bst-7b677392-9c8c-4635-b49e-14610742367e.bastion.azure.com",
"scaleUnits": 2,
"enableTunneling": true,
"enableIpConnect": true,
"disableCopyPaste": false,
"enableShareableLink": true,
"enableKerberos": false,
"ipConfigurations": [
{
"name": "IpConf",
"id": "/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/bastionHosts/BastionName/bastionHostIpConfigurations/IpConf",
"etag": "W/"99264ae2-e24c-4c8f-aff4-ec718d5311d4"",
"type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/publicIPAddresses/pip-BastionName"
},
"subnet": {
"id": "/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/rg-network-prod-001/providers/Microsoft.Network/virtualNetworks/vnet-sharedservices-cac/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: 51394
cli.azext_bastion.tunnel: Finished initialization
cli.azext_bastion.custom: Platform architecture: ('64bit', '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 17732
cli.azext_bastion.tunnel: Got a connection, starting a new thread
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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f
msal.authority: openid_config("https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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/7dcf6c5f-f26d-4d0b-b711-6d11b794877f/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? True
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: 55306875-ab3d-421b-8d90-500bfefb1303
cli.azext_bastion.tunnel: Content: {'resourceId': '/subscriptions/9461d555-17dd-4ed1-9048-39301f10e76b/resourceGroups/RgName/providers/Microsoft.Network/bh-hostConnect/10.0.0.40', 'protocol': 'tcptunnel', 'workloadHostPort': 3389, 'aztoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IktRMnRBY3JFN2xCYVZWR0JtYzVGb2JnZEpvNCIsImtpZCI6IktRMnRBY3JFN2xCYVZWR0JtYzVGb2JnZEpvNCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1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jXViKPTPI52ACwX8c1D2UcIvPE_MhpUs5Mi1yDrf7WCNsz9FQ1de_Ws8AIsBBoxVz2w63dYYT1lct6PeubmxUwNd5TGVbn93VjRhtDZLmKpWQlAw', 'token': None, 'hostname': '10.0.0.40'}
urllib3.connectionpool: Starting new HTTPS connection (1): bst-7b677392-9c8c-4635-b49e-14610742367e.bastion.azure.com:443
urllib3.connectionpool: https://bst-7b677392-9c8c-4635-b49e-14610742367e.bastion.azure.com:443 "POST /api/tokens HTTP/1.1" 200 None
cli.azext_bastion.tunnel: Websocket, connected status: True
cli.azext_bastion.tunnel: Got debugger connection... index: 0
cli.azext_bastion.tunnel: Waiting for debugger data, index: 0
cli.azext_bastion.tunnel: Received debugger data, nbytes: 47, index: 0
cli.azext_bastion.tunnel: Waiting for websocket data, connection status: True, index: 0
cli.azext_bastion.tunnel: Both debugger and websocket threads started...
cli.azext_bastion.tunnel: Sending to websocket, index: 0
cli.azext_bastion.tunnel: Successfully connected to local server..
cli.azext_bastion.tunnel: Done sending to websocket, index: 0
cli.azext_bastion.tunnel: Waiting for debugger data, index: 0
cli.azext_bastion.tunnel: Received websocket index: 0
cli.azext_bastion.tunnel: Sending to debugger, index: 0
cli.azext_bastion.tunnel: Done sending to debugger, index: 0
cli.azext_bastion.tunnel: Waiting for websocket data, connection status: True, index: 0
cli.azext_bastion.tunnel: [WinError 10054] An existing connection was forcibly closed by the remote host
cli.azext_bastion.tunnel: Client disconnected 0

Expected behavior

Load the rdp configuration options to make sure multiple monitors is selected. The rdp configuration shows when using --target-resource-id

Environment Summary

PS C:\Users\UserName> az --version
azure-cli 2.63.0

core 2.63.0
telemetry 1.1.0

Extensions:
bastion 1.0.1

Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\UserName.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

I am trying to use multiple monitors when conencting via --target-ip-address, currently i am locket to one monitor only, and cannot change the rdp options as it does not prompt for me.

@brucanada brucanada added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Aug 13, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. Network labels Aug 13, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 13, 2024

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

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team Service Attention This issue is responsible by Azure service team. Network - Bastion labels Aug 13, 2024
Copy link
Contributor

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

Copy link
Contributor

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

@brucanada
Copy link
Author

Using --target-resource-id { } --configure
target-resource-id

Using --target-ip-address { } --configure
target-ip configure

@yonzhan yonzhan removed bug This issue requires a change to an existing behavior in the product in order to be resolved. Azure CLI Team The command of the issue is owned by Azure CLI team labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Network - Bastion Network question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants