cli.knack.cli: Command arguments: ['connectedk8s', 'connect', '--name', 'munish-laptop-k3d', '--resource-group', 'azure-arc-test', '--location', 'eastus2', '--debug'] cli.knack.cli: __init__ debug log: Enable color in terminal. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'connectedk8s': ['azext_connectedk8s'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: Total (0) 0.000 0 0 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: connectedk8s 0.566 1 9 C:\Users\Administrator\.azure\cliextensions\connectedk8s cli.azure.cli.core: Total (1) 0.566 1 9 cli.azure.cli.core: Loaded 1 groups, 9 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : connectedk8s connect cli.azure.cli.core: Command table: connectedk8s connect cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Administrator\.azure\commands\2022-03-21.17-47-19.connectedk8s_connect.29880.log'. az_command_data_logger: command args: connectedk8s connect --name {} --resource-group {} --location {} --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x039E84F0>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x039E85C8>, .add_cache_arguments at 0x03A4A6E8>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .parse_ids_arguments at 0x03A4A6A0>] az_command_data_logger: extension name: connectedk8s az_command_data_logger: extension version: 1.2.7 cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ConnectedKubernetesClient cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\Administrator\\.azure\\msal_token_cache.bin', encrypt=True cli.azure.cli.core.auth.identity: _load_msal_http_cache: C:\Users\Administrator\.azure\msal_http_cache.bin cli.azure.cli.core.auth.identity: __load_msal_http_cache: C:\Users\Administrator\.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/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/kerberos', 'tenant_region_scope': 'WW', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'} cli.azext_connectedk8s.custom: This operation might take a while... cli.azure.cli.core: Current cloud config: AzureCloud cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) msal.authority: openid_config = cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={} msal.application: Cache hit an AT msal.telemetry: Generate or reuse correlation_id: a6b96e3a-bc74-48e7-8ad4-ac06bcf8edf6 cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.Kubernetes?api-version=2021-04-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': 'da78062b-a910-11ec-9fa8-70bc107cd985' cli.azure.cli.core.sdk.policies: 'CommandName': 'connectedk8s connect' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.34.1 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.9 (Windows-10-10.0.19041-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/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.Kubernetes?api-version=2021-04-01 HTTP/1.1" 200 928 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-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: 'Vary': 'Accept-Encoding' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11999' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'bc374b24-fc2e-4644-94dc-dea1f98f5983' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'bc374b24-fc2e-4644-94dc-dea1f98f5983' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTINDIA:20220321T121724Z:bc374b24-fc2e-4644-94dc-dea1f98f5983' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 21 Mar 2022 12:17:23 GMT' cli.azure.cli.core.sdk.policies: 'Content-Length': '928' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"id":"/subscriptions/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.Kubernetes","namespace":"Microsoft.Kubernetes","authorizations":[{"applicationId":"64b12d6e-6549-484c-8cc6-6281839ba394","roleDefinitionId":"1d1d44cf-68a1-4def-a2b6-cd7efc3515af"},{"applicationId":"359431ad-ece5-496b-8768-be4bbfd82f36","roleDefinitionId":"1b5c71b7-9814-4b40-b62a-23018af874d8"},{"applicationId":"0000dab9-8b21-4ba2-807f-1743968cef00","roleDefinitionId":"1b5c71b7-9814-4b40-b62a-23018af874d8"},{"applicationId":"8edd93e1-2103-40b4-bd70-6e34e586362d","roleDefinitionId":"eb67887a-31e8-4e4e-bf5b-14ff79351a6f"}],"resourceTypes":[{"resourceType":"connectedClusters","locations":["West Europe","East US","West Central US","South Central US","Southeast Asia","UK South","East US 2","West US 2","Australia East","North Europe","France Central","Central US","West US","North Central US","Korea Central","Japan East","West US 3","East Asia"],"apiVersions":["2021-10-01","2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2021-10-01","2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East US 2 EUAP","West Europe","East US","West Central US","South Central US","Southeast Asia","UK South","East US 2","West US 2","Australia East","North Europe","France Central","Central US","West US","North Central US","Korea Central","Japan East","East Asia","West US 3"],"apiVersions":["2021-10-01","2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"registeredSubscriptions","locations":[],"apiVersions":["2021-10-01","2021-04-01-preview","2021-03-01","2020-01-01-preview"],"capabilities":"None"},{"resourceType":"Operations","locations":[],"apiVersions":["2021-10-01","2021-04-01-preview","2021-03-01","2020-01-01-preview","2019-11-01-preview","2019-09-01-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.KubernetesConfiguration?api-version=2021-04-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': 'da78062b-a910-11ec-9fa8-70bc107cd985' cli.azure.cli.core.sdk.policies: 'CommandName': 'connectedk8s connect' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.34.1 (MSI) azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.9 (Windows-10-10.0.19041-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: https://management.azure.com:443 "GET /subscriptions/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.KubernetesConfiguration?api-version=2021-04-01 HTTP/1.1" 200 972 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-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: 'Vary': 'Accept-Encoding' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11998' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '77a94991-803d-48ac-b650-587f92c9a17e' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '77a94991-803d-48ac-b650-587f92c9a17e' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTINDIA:20220321T121724Z:77a94991-803d-48ac-b650-587f92c9a17e' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 21 Mar 2022 12:17:23 GMT' cli.azure.cli.core.sdk.policies: 'Content-Length': '972' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"id":"/subscriptions/9504bcb8-b81f-421e-84a7-c25311f081dd/providers/Microsoft.KubernetesConfiguration","namespace":"Microsoft.KubernetesConfiguration","authorizations":[{"applicationId":"c699bf69-fb1d-4eaf-999b-99e6b2ae4d85","roleDefinitionId":"90155430-a360-410f-af5d-89dc284d85c6"},{"applicationId":"03db181c-e9d3-4868-9097-f0b728327182","roleDefinitionId":"DE2ADB97-42D8-49C8-8FCF-DBB53EF936AC"},{"applicationId":"a0f92522-89de-4c5e-9a75-0044ccf66efd","roleDefinitionId":"b3429810-7d5c-420e-8605-cf280f3099f2"},{"applicationId":"bd9b7cd5-dac1-495f-b013-ac871e98fa5f","roleDefinitionId":"0d44c8f0-08b9-44d4-9f59-e51c83f95200"}],"resourceTypes":[{"resourceType":"sourceControlConfigurations","locations":["East US","West Europe","West Central US","West US 2","West US 3","South Central US","East US 2","North Europe","UK South","Southeast Asia","Australia East","France Central","Central US","North Central US","West US","Korea Central","East Asia","Japan East"],"apiVersions":["2022-03-01","2021-03-01","2020-10-01-preview","2020-07-01-preview","2019-11-01-preview"],"defaultApiVersion":"2022-03-01","capabilities":"SupportsExtension"},{"resourceType":"extensions","locations":["East US","West Europe","West Central US","West US 2","West US 3","South Central US","East US 2","North Europe","UK South","Southeast Asia","Australia East","France Central","Central US","North Central US","West US","Korea Central","East Asia","Japan East"],"apiVersions":["2022-03-01","2021-09-01","2021-05-01-preview","2020-07-01-preview"],"defaultApiVersion":"2022-03-01","capabilities":"SystemAssignedResourceIdentity, SupportsExtension"},{"resourceType":"fluxConfigurations","locations":["East US","West Europe","West Central US","West US 2","West US 3","South Central US","East US 2","North Europe","UK South","Southeast Asia","Australia East","France Central","Central US","North Central US","West US","Korea Central","East Asia","Japan East"],"apiVersions":["2022-03-01","2022-01-01-preview","2021-11-01-preview","2021-06-01-preview"],"defaultApiVersion":"2022-03-01","capabilities":"SupportsExtension"},{"resourceType":"operations","locations":[],"apiVersions":["2022-03-01","2022-01-01-preview","2021-12-01-preview","2021-11-01-preview","2021-09-01","2021-06-01-preview","2021-05-01-preview","2021-03-01","2020-10-01-preview","2020-07-01-preview","2019-11-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"} cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception: cli.azure.cli.core.util: Traceback (most recent call last): File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\azext_connectedk8s\custom.py", line 475, in load_kube_config config.load_kube_config(config_file=kube_config, context=kube_context) File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\kubernetes\config\kube_config.py", line 737, in load_kube_config loader = _get_kube_config_loader_for_yaml_file( File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\kubernetes\config\kube_config.py", line 695, in _get_kube_config_loader_for_yaml_file kcfg = KubeConfigMerger(filename) File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\kubernetes\config\kube_config.py", line 650, in __init__ self.load_config(path) File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\kubernetes\config\kube_config.py", line 659, in load_config config = yaml.safe_load(f) File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/__init__.py", line 125, in safe_load File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/__init__.py", line 79, in load File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/loader.py", line 34, in __init__ File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/reader.py", line 85, in __init__ File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/reader.py", line 135, in determine_encoding File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/reader.py", line 169, in update File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\yaml/reader.py", line 143, in check_printable yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed in "C:\Users\Administrator/.kube/config", position 3 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__ File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\azext_connectedk8s\custom.py", line 106, in create_connectedk8s load_kube_config(kube_config, kube_context) File "C:\Users\Administrator\.azure\cliextensions\connectedk8s\azext_connectedk8s\custom.py", line 479, in load_kube_config raise FileOperationError("Problem loading the kubeconfig file." + str(e)) azure.cli.core.azclierror.FileOperationError: Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed in "C:\Users\Administrator/.kube/config", position 3 cli.azure.cli.core.azclierror: Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed in "C:\Users\Administrator/.kube/config", position 3 az_command_data_logger: Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed in "C:\Users\Administrator/.kube/config", position 3 cli.knack.cli: Event: Cli.PostExecute [] az_command_data_logger: exit code: 1 cli.__main__: Command ran in 5.307 seconds (init: 0.734, invoke: 4.573) telemetry.save: Save telemetry record of length 6840 in cache telemetry.check: Negative: The C:\Users\Administrator\.azure\telemetry.txt was modified at 2022-03-21 17:46:19.141225, which in less than 600.000000 s cli.azure.cli.core.auth.identity: _dump_msal_http_cache: C:\Users\Administrator\.azure\msal_http_cache.bin