Skip to content

Syntax warnings with brand new Azure CLI on macOS installed via brewΒ #30963

@joelparkerhenderson

Description

@joelparkerhenderson

Describe the bug

I'm trying Azure CLI for the first time today, and hitting the errors on macOS with az-cli installation via brew.

Related command

az --version
azure-cli                         2.70.0

core                              2.70.0
telemetry                          1.1.0

Dependencies:
msal                            1.31.2b1
azure-mgmt-resource               23.1.1

Python location '/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/bin/python'
Config directory '/Users/jph/.azure'
Extensions directory '/Users/jph/.azure/cliextensions'

Python (Darwin) 3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/deviceid.py:9: SyntaxWarning: invalid escape sequence '\S'
  """
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/_store.py:6: SyntaxWarning: invalid escape sequence '\M'
  REGISTRY_PATH = 'SOFTWARE\Microsoft\DeveloperTools'

Errors

/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/deviceid.py:9: SyntaxWarning: invalid escape sequence '\S'
  """
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/_store.py:6: SyntaxWarning: invalid escape sequence '\M'
  REGISTRY_PATH = 'SOFTWARE\Microsoft\DeveloperTools'

Issue script & Debug output

NA

Expected behavior

NA

Environment Summary

NA

Additional context

No response

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamPossible-SolutionSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions