Skip to content

Syntax error #31530

@jms1voalte

Description

@jms1voalte

Describe the bug

Ran time az keyvault check-name --name XXX --debug. This command timed out (see #31178), however in the output I noticed these two lines:

/usr/local/Cellar/azure-cli/2.73.0/libexec/lib/python3.12/site-packages/azure/batch/models/_models.py:9067: SyntaxWarning: invalid escape sequence '\ '
  """The source port ranges to match for the rule. Valid values are '\ *' (for all ports 0 - 65535),
/usr/local/Cellar/azure-cli/2.73.0/libexec/lib/python3.12/site-packages/azure/batch/models/_models.py:9235: SyntaxWarning: invalid escape sequence '\ '
  using brackets (for example abc[\ *] would match a file named abc*\ ). Note that both and / are

My python-fu is weak, I don't know what a """-delimited string is supposed to be (documentation maybe?) or what the rules are about how backslash-escaping is supposed to work within one.

Related command

az keyvault check-name

Errors

See description.

Issue script & Debug output

See description.

Expected behavior

No SyntaxWarning messages

Environment Summary

azure-cli                         2.73.0

core                              2.73.0
telemetry                          1.1.0

Extensions:
bastion                            0.3.0
ssh                                2.0.3
virtual-wan                        0.2.4

Dependencies:
msal                              1.32.3
azure-mgmt-resource               23.3.0

Python location '/usr/local/Cellar/azure-cli/2.73.0/libexec/bin/python'
Config directory '/Users/jms1/.azure'
Extensions directory '/Users/jms1/.azure/cliextensions'

Python (Darwin) 3.12.10 (main, Apr  8 2025, 11:35:47) [Clang 16.0.0 (clang-1600.0.26.6)]

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamKeyVaultaz keyvaultcustomer-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