-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
At runtime, I get the following python warnings when using the stream-analytics CLI extensions. Theer are stray backslashes in the code that cause it.
Related command
az stream-analytics
Errors
C:\Users\clemensv\.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\models\_stream_analytics_management_client_enums.py:30: SyntaxWarning: invalid escape sequence '\ '
"""Authentication Mode. Valid modes are ``ConnectionString``\ , ``Msi`` and 'UserToken'.
C:\Users\clemensv\.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations\_inputs_operations.py:369: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
C:\Users\clemensv\.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations\_outputs_operations.py:371: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
C:\Users\clemensv\.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations\_functions_operations.py:371: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
Issue script & Debug output
az stream-analytics job list -g nonexisting --debug pwsh 11:34:50
cli.knack.cli: Command arguments: ['stream-analytics', 'job', 'list', '-g', 'nonexisting', '--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 0x00000190908A4540>, <function OutputProducer.on_global_arguments at 0x0000019090E35940>, <function CLIQuery.on_global_arguments at 0x0000019090E8F880>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'stream-analytics': ['azext_stream_analytics']
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: stream-analytics 0.058 9 47 C:\Users\clemensv.azure\cliextensions\stream-analytics
cli.azure.cli.core: Total (1) 0.058 9 47
cli.azure.cli.core: Loaded 9 groups, 47 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : stream-analytics job list
cli.azure.cli.core: Command table: stream-analytics job list
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000019093615120>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\clemensv.azure\commands\2025-09-12.11-35-22.stream-analytics_job_list.58008.log'.
az_command_data_logger: command args: stream-analytics job list -g {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000019093656660>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x00000190936CC9A0>, <function register_cache_arguments..add_cache_arguments at 0x00000190936CCB80>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x00000190936CCC20>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000019090E359E0>, <function CLIQuery.handle_query_parameter at 0x0000019090E8F920>, <function register_ids_argument..parse_ids_arguments at 0x00000190936CCA40>]
az_command_data_logger: extension name: stream-analytics
az_command_data_logger: extension version: 1.0.0
C:\Users\clemensv.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\models_stream_analytics_management_client_enums.py:30: SyntaxWarning: invalid escape sequence '\ '
"""Authentication Mode. Valid modes are ConnectionString\ , Msi and 'UserToken'.
C:\Users\clemensv.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations_inputs_operations.py:369: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
C:\Users\clemensv.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations_outputs_operations.py:371: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
C:\Users\clemensv.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations_functions_operations.py:371: SyntaxWarning: invalid escape sequence '\ '
properties to include in the response, or "\ *" to include all properties. By default, all
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=StreamAnalyticsManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\clemensv\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\clemensv.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/72f988bf-86f1-41af-91ab-2d7cd011db47
msal.authority: openid_config("https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration") = {'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'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token_info: scopes=('https://management.core.windows.net//.default',), options={}
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: 65a18478-747b-4fa7-b2af-b0b40fda61ac
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/041abda7-3870-4275-ae24-6bf4c5300523/resourcegroups/nonexisting/providers/Microsoft.StreamAnalytics/streamingjobs?api-version=2020-03-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': 'ce14d3dd-8fbb-11f0-9218-6045bd912e4a'
cli.azure.cli.core.sdk.policies: 'CommandName': 'stream-analytics job list'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.77.0 (MSI) azsdk-python-core/1.35.0 Python/3.13.7 (Windows-11-10.0.26100-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/041abda7-3870-4275-ae24-6bf4c5300523/resourcegroups/nonexisting/providers/Microsoft.StreamAnalytics/streamingjobs?api-version=2020-03-01 HTTP/1.1" 404 103
cli.azure.cli.core.sdk.policies: Response status: 404
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': '103'
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: 'x-ms-failure-cause': 'gateway'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'c1e4711b-7117-45dd-ae61-23c5e1c984c9'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'c1e4711b-7117-45dd-ae61-23c5e1c984c9'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'NORTHEUROPE:20250912T093525Z:c1e4711b-7117-45dd-ae61-23c5e1c984c9'
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: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 302CE70CCB7E4F44932910A6EF3F8C25 Ref B: AMS231020614049 Ref C: 2025-09-12T09:35:25Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Fri, 12 Sep 2025 09:35:24 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"ResourceGroupNotFound","message":"Resource group 'nonexisting' could not be found."}}
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 716, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 136, in next
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 82, in next
File "C:\Users\clemensv.azure\cliextensions\stream-analytics\azext_stream_analytics\vendored_sdks\streamanalytics\operations_streaming_jobs_operations.py", line 538, in get_next
map_error(status_code=response.status_code, response=response, error_map=error_map)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/exceptions.py", line 163, in map_error
azure.core.exceptions.ResourceNotFoundError: (ResourceGroupNotFound) Resource group 'nonexisting' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'nonexisting' could not be found.
cli.azure.cli.core.azclierror: (ResourceGroupNotFound) Resource group 'nonexisting' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'nonexisting' could not be found.
az_command_data_logger: (ResourceGroupNotFound) Resource group 'nonexisting' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'nonexisting' could not be found.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x00000190936153A0>]
az_command_data_logger: exit code: 3
cli.main: Command ran in 3.310 seconds (init: 0.933, invoke: 2.377)
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 4077 in cache file under C:\Users\clemensv.azure\telemetry\20250912113525355
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\clemensv.azure C:\Users\clemensv.azure\telemetry\20250912113525355"
telemetry.process: Return from creating process 60624
telemetry.main: Finish creating telemetry upload process.
Expected behavior
I expect the warnings not to appear.
Environment Summary
az --version pwsh 11:35:26
azure-cli 2.77.0
core 2.77.0
telemetry 1.1.0
Extensions:
application-insights 1.2.3
containerapp 1.2.0b3
eventgrid 1.0.0b2
kusto 0.5.0
portal 1.0.0b2
rdbms-connect 1.0.7
scheduled-query 1.0.0b1
stream-analytics 1.0.0
Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\clemensv.azure'
Extensions directory 'C:\Users\clemensv.azure\cliextensions'
Python (Windows) 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response