Skip to content

Installing azure-cli on Debian gives SyntaxWarning: invalid escape sequence '\ ' #33258

Description

@mejobloggs-cw

Describe the bug

I followed these instructions:
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest

When i run sudo apt-get install azure-cli on Debian 6.12.74-2 (2026-03-08)

Related command

sudo apt-get install azure-cli

Errors

Setting up python3-azure (20250603+git-1) ...
/usr/lib/python3/dist-packages/azure/ai/ml/_vendor/azure_resources/aio/operations/_resources_operations.py:80: SyntaxWarning: invalid escape sequence '\ '
Valid values include createdTime\ , changedTime and provisioningState. For example,
/usr/lib/python3/dist-packages/azure/ai/ml/_vendor/azure_resources/aio/operations/_resources_operations.py:405: SyntaxWarning: invalid escape sequence '\ '
Valid values include createdTime\ , changedTime and provisioningState. For example,
/usr/lib/python3/dist-packages/azure/appconfiguration/_generated/models/_models.py:238: SyntaxWarning: invalid escape sequence '\ '
"""An error, available when the status is Failed\ , describing why the operation
/usr/lib/python3/dist-packages/azure/batch/models/_models.py:10220: SyntaxWarning: invalid escape sequence '*'
***.txt matches any file that does not start in '.' and ends with .txt in the Task working
/usr/lib/python3/dist-packages/azure/communication/jobrouter/models/_models.py:2326: SyntaxWarning: invalid escape sequence '\ '
payload to scoring rule. If not set, a job's labels (sent in the payload as job\ ) and a
/usr/lib/python3/dist-packages/azure/communication/jobrouter/models/_models.py:2346: SyntaxWarning: invalid escape sequence '\ '
If not set, a job's labels (sent in the payload as job\ ) and a job's worker selectors
/usr/lib/python3/dist-packages/azure/mgmt/advisor/aio/operations/_recommendations_operations.py:190: SyntaxWarning: invalid escape sequence '\ '
properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', '\ Category /usr/lib/python3/dist-packages/azure/mgmt/advisor/operations/_recommendations_operations.py:303: SyntaxWarning: invalid escape sequence '\ ' properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', '\ Category
/usr/lib/python3/dist-packages/azure/mgmt/computefleet/models/_models.py:624: SyntaxWarning: invalid escape sequence '\ '
and Screenshot to diagnose VM status. NOTE\ : If storageUri is being
/usr/lib/python3/dist-packages/azure/mgmt/computefleet/models/models.py:3707: SyntaxWarning: invalid escape sequence '\W'
characters :code:<br> Has a digit :code:<br> Has a special character (Regex match [\W
])
/usr/lib/python3/dist-packages/azure/mgmt/datamigration/models/_models_py3.py:16843: SyntaxWarning: invalid escape sequence '\S'
Protocol:MachineName\SQLServerInstanceName,PortNumber. Required.
/usr/lib/python3/dist-packages/azure/mgmt/datamigration/models/_models_py3.py:16916: SyntaxWarning: invalid escape sequence '\S'
Protocol:MachineName\SQLServerInstanceName,PortNumber. Required.
/usr/lib/python3/dist-packages/azure/mgmt/hybridnetwork/models/_models_py3.py:6032: SyntaxWarning: invalid escape sequence '\ '
:ivar provisioning_state: The provisioning state of the site resource. TODO\ : Confirm if
/usr/lib/python3/dist-packages/azure/mgmt/iotoperations/models/_models.py:3866: SyntaxWarning: invalid escape sequence '\ '
pattern set glob-style pattern (e.g., '\ ', 'clients/\ '). Required."""
/usr/lib/python3/dist-packages/azure/mgmt/iotoperations/models/_models.py:3868: SyntaxWarning: invalid escape sequence '\ '
"""Give access for Read\ , Write and ReadWrite access level. Required. Known values
/usr/lib/python3/dist-packages/azure/mgmt/machinelearningservices/models/_machine_learning_services_mgmt_client_enums.py:169: SyntaxWarning: invalid escape sequence '\ '
#: The "forest"\ it builds, is an ensemble of decision trees, usually trained with the “bagging”
/usr/lib/python3/dist-packages/azure/mgmt/machinelearningservices/models/_machine_learning_services_mgmt_client_enums.py:1032: SyntaxWarning: invalid escape sequence '\ '

Issue script & Debug output

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest

Expected behavior

It installs cleanly

Environment Summary

Debian 6.12.74-2 (2026-03-08)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-ResolveAuto resolve by botInstallationPossible-SolutionSimilar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions