azure-cli
azure-cli copied to clipboard
Hundreds of "SyntaxWarning: invalid escape sequence" will break in future python versions
Describe the bug
We see many syntax warnings with python 3.12 which will be syntax errors in a future versions of python.
Related command
Any command that goes through the bad code, including az login
.
Errors
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/batch/models/_models_py3.py:4756: SyntaxWarning: invalid escape sequence '\s'
"""A Job Preparation Task to run before any Tasks of the Job on any given
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/mgmt/servicelinker/models/_models_py3.py:63: SyntaxWarning: invalid escape sequence '\ '
"""The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/mgmt/servicelinker/models/_models_py3.py:87: SyntaxWarning: invalid escape sequence '\ '
"""
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/test_notifications/_create.py:18: SyntaxWarning: invalid escape sequence '\ '
"""Create an action group test-notifications.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/activity_log/alert/_create.py:18: SyntaxWarning: invalid escape sequence '\ '
"""Create a default activity log alert rule.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/activity_log/alert/_update.py:18: SyntaxWarning: invalid escape sequence '\ '
"""Update a new activity log alert or update an existing one.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/autoscale/_create.py:15: SyntaxWarning: invalid escape sequence '\ '
"""Create an autoscale setting.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/autoscale/_update.py:18: SyntaxWarning: invalid escape sequence '\ '
"""Update an autoscale setting.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py:9171: SyntaxWarning: invalid escape sequence '\ '
"""Get all the resources for a resource group.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/mgmt/resource/resources/v2022_09_01/operations/_operations.py:9700: SyntaxWarning: invalid escape sequence '\ '
"""Get all the resources in a subscription.
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_create.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_create.py:186: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_create.py:201: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_create.py:232: SyntaxWarning: invalid escape sequence '\.'
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_delete.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_renew_credentials.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_show.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_update.py:59: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_update.py:197: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_update.py:215: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_update.py:251: SyntaxWarning: invalid escape sequence '\.'
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_add.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_add.py:104: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_add.py:122: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_add.py:159: SyntaxWarning: invalid escape sequence '\.'
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_list.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_remove.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_show.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_update.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_update.py:112: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_update.py:133: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_update.py:175: SyntaxWarning: invalid escape sequence '\.'
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/ad/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_break_file_locks.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_break_file_locks.py:64: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_break_file_locks.py:78: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_break_file_locks.py:92: SyntaxWarning: invalid escape sequence '\.'
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_create.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_create.py:69: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_create.py:82: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_create.py:287: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-]{0,79}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_delete.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_delete.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_delete.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_finalize_relocation.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_finalize_relocation.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_finalize_relocation.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_get_groupid_list_for_ldapuser.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_get_groupid_list_for_ldapuser.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_get_groupid_list_for_ldapuser.py:79: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_list.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_list.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_migrate_backup.py:52: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_migrate_backup.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_migrate_backup.py:75: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_pool_change.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_pool_change.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_pool_change.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_populate_availability_zone.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_populate_availability_zone.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_populate_availability_zone.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_relocate.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_relocate.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_relocate.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_reset_cifs_pw.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_reset_cifs_pw.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_reset_cifs_pw.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert_relocation.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert_relocation.py:64: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_revert_relocation.py:78: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_show.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_show.py:62: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_show.py:76: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_update.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_update.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_update.py:79: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_update.py:276: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-]{0,79}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_wait.py:58: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/_wait.py:72: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_create.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_create.py:67: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_create.py:176: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-]{0,79}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_delete.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_delete.py:67: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_list.py:52: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_show.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_show.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_update.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_update.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_update.py:168: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-]{0,79}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume_group/_wait.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_add.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_add.py:62: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_add.py:75: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_list.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_list.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_list.py:74: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_remove.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_remove.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_remove.py:76: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_show.py:53: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_show.py:61: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_show.py:74: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_update.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_update.py:64: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_update.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_wait.py:58: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/export_policy/_wait.py:72: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_approve.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_approve.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_approve.py:79: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_list.py:52: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_list.py:60: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_list.py:73: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_re_initialize.py:57: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_re_initialize.py:66: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_re_initialize.py:80: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_reestablish.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_reestablish.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_reestablish.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_remove.py:54: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_remove.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_remove.py:77: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_resume.py:57: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_resume.py:66: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_resume.py:80: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_status.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_status.py:64: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_status.py:78: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_suspend.py:57: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_suspend.py:66: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/volume/replication/_suspend.py:80: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_create.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_create.py:63: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_delete.py:56: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_delete.py:65: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_list.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_show.py:55: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_show.py:64: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_update.py:58: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_update.py:67: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_wait.py:49: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/pool/_wait.py:58: SyntaxWarning: invalid escape sequence '\-'
pattern="^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$",
/home/user/.pyenv/versions/3.12.3/lib/python3.12/site-packages/azure/cli/command_modules/network/aaz/latest/network/lb/rule/_update.py:18: SyntaxWarning: invalid escape sequence '\ '
"""Update a load balancing rule.
Issue script & Debug output
N/A
Expected behavior
The az-cli should not spew any syntax warnings.
Environment Summary
azure-cli==2.59.0 Python 3.12.3
Additional context
These syntax issues have been deprecated in Python for several python releases, 3.12 is showing the issues more explicitly since they are planned to break runtime in the future.
This should be fixed very promptly.
Thank you for opening this issue, we will look into it.
For reference this is the change in cPython that raises the SyntaxWarning, in a future version of python it will be an error: https://github.com/python/cpython/issues/98401
This has been deprecated since 3.6.
https://github.com/Azure/autorest.python/pull/2560 is merged and it means that new Azure SDK package versions won't have this warning. For commands themselves, I opened https://github.com/Azure/aaz-dev-tools/pull/360. I think these will solve the issue completely, when the latter is merged and new code is generated.
I needed to open Azure/aaz-dev-tools#365 too.
A SyntaxWarning is emitted when the compiler compiles Python sources to bytecode. --https://github.com/python/cpython/issues/79031#issuecomment-1093800991
This error doesn't appear in official CLI packages because it's already compiled into byte code.
Official fix guide
A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.) ---https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
Here is the code that need to be fixed:
ruff check ./src --select W605 --ignore-noqa
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:382:80: W605 [*] Invalid escape sequence: `\[`
|
380 | )
381 |
382 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[1\]' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
| ^^ W605
383 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
384 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:382:83: W605 [*] Invalid escape sequence: `\]`
|
380 | )
381 |
382 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[1\]' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
| ^^ W605
383 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
384 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:382:113: W605 [*] Invalid escape sequence: `\[`
|
380 | )
381 |
382 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[1\]' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
| ^^
W605
383 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
384 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:382:145: W605 [*] Invalid escape sequence: `\]`
|
380 | )
381 |
382 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[1\]' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
|
^^ W605
383 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
384 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:392:113: W605 [*] Invalid escape sequence: `\[`
|
390 | )
391 |
392 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'props' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
| ^^
W605
393 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
394 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:392:145: W605 [*] Invalid escape sequence: `\]`
|
390 | )
391 |
392 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'props' in ''. Available options: \['d', 'd2', 'i', 'l', 'l2', 's'\]"):
|
^^ W605
393 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
394 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:402:88: W605 [*] Invalid escape sequence: `\[`
|
400 | )
401 |
402 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'o' in 'l\[0\]'. Available options: \['p', 's'\]"):
| ^^ W605
403 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
404 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:402:91: W605 [*] Invalid escape sequence: `\]`
|
400 | )
401 |
402 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'o' in 'l\[0\]'. Available options: \['p', 's'\]"):
| ^^ W605
403 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
404 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:402:115: W605 [*] Invalid escape sequence: `\[`
|
400 | )
401 |
402 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'o' in 'l\[0\]'. Available options: \['p', 's'\]"):
|
^^ W605
403 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
404 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:402:125: W605 [*] Invalid escape sequence: `\]`
|
400 | )
401 |
402 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 'o' in 'l\[0\]'. Available options: \['p', 's'\]"):
|
^^ W605
403 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
404 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:444:88: W605 [*] Invalid escape sequence: `\[`
|
442 | )
443 |
444 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 't' in 'l\[1\]'. Available options: \['p', 's'\]"):
| ^^ W605
445 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
446 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:444:91: W605 [*] Invalid escape sequence: `\]`
|
442 | )
443 |
444 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 't' in 'l\[1\]'. Available options: \['p', 's'\]"):
| ^^ W605
445 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
446 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:444:115: W605 [*] Invalid escape sequence: `\[`
|
442 | )
443 |
444 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 't' in 'l\[1\]'. Available options: \['p', 's'\]"):
|
^^ W605
445 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
446 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:444:125: W605 [*] Invalid escape sequence: `\]`
|
442 | )
443 |
444 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find 't' in 'l\[1\]'. Available options: \['p', 's'\]"):
|
^^ W605
445 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
446 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:464:93: W605 [*] Invalid escape sequence: `\(`
|
462 | )
463 |
464 | with self.assertRaisesRegex(InvalidArgumentValueError, "Expect <class 'str'>, got 3 \(<class 'int'>\)"):
| ^^ W605
465 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
466 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:464:108: W605 [*] Invalid escape sequence: `\)`
|
462 | )
463 |
464 | with self.assertRaisesRegex(InvalidArgumentValueError, "Expect <class 'str'>, got 3 \(<class 'int'>\)"):
| ^^ W605
465 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
466 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:484:80: W605 [*] Invalid escape sequence: `\[`
|
482 | )
483 |
484 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[10\]' in 'd'. Available options: \['a', 'b', 'c'\]"):
| ^^ W605
485 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
486 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:484:84: W605 [*] Invalid escape sequence: `\]`
|
482 | )
483 |
484 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[10\]' in 'd'. Available options: \['a', 'b', 'c'\]"):
| ^^ W605
485 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
486 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:484:115: W605 [*] Invalid escape sequence: `\[`
|
482 | )
483 |
484 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[10\]' in 'd'. Available options: \['a', 'b', 'c'\]"):
|
^^ W605
485 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
486 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:484:130: W605 [*] Invalid escape sequence: `\]`
|
482 | )
483 |
484 | with self.assertRaisesRegex(InvalidArgumentValueError, "Couldn't find '\[10\]' in 'd'. Available options: \['a', 'b', 'c'\]"):
|
^^ W605
485 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
486 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:495:93: W605 [*] Invalid escape sequence: `\(`
|
494 | # test add
495 | with self.assertRaisesRegex(InvalidArgumentValueError, "Expect <class 'int'>, got a \(<class 'str'>\)"):
| ^^ W605
496 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
497 | instance,
|
= help: Use a raw string literal
src\azure-cli-core\azure\cli\core\tests\test_aaz_operation.py:495:108: W605 [*] Invalid escape sequence: `\)`
|
494 | # test add
495 | with self.assertRaisesRegex(InvalidArgumentValueError, "Expect <class 'int'>, got a \(<class 'str'>\)"):
| ^^ W605
496 | AAZGenericInstanceUpdateOperation(ctx)._update_instance_by_generic(
497 | instance,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\cluster\server\_show.py:67:29: W605 [*] Invalid escape sequence: `\w`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | max_length=90,
69 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\cluster\server\_show.py:67:31: W605 [*] Invalid escape sequence: `\.`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | max_length=90,
69 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\_show.py:64:29: W605 [*] Invalid escape sequence: `\w`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\_show.py:64:31: W605 [*] Invalid escape sequence: `\.`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_show.py:64:29: W605 [*] Invalid escape sequence: `\w`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_show.py:64:31: W605 [*] Invalid escape sequence: `\.`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_update.py:65:29: W605 [*] Invalid escape sequence: `\w`
|
63 | id_part="child_name_1",
64 | fmt=AAZStrArgFormat(
65 | pattern="^[-\w\._]+$",
| ^^ W605
66 | max_length=90,
67 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_update.py:65:31: W605 [*] Invalid escape sequence: `\.`
|
63 | id_part="child_name_1",
64 | fmt=AAZStrArgFormat(
65 | pattern="^[-\w\._]+$",
| ^^ W605
66 | max_length=90,
67 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_wait.py:60:29: W605 [*] Invalid escape sequence: `\w`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | max_length=90,
62 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\coordinator\_wait.py:60:31: W605 [*] Invalid escape sequence: `\.`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | max_length=90,
62 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_show.py:64:29: W605 [*] Invalid escape sequence: `\w`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_show.py:64:31: W605 [*] Invalid escape sequence: `\.`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_update.py:65:29: W605 [*] Invalid escape sequence: `\w`
|
63 | id_part="child_name_1",
64 | fmt=AAZStrArgFormat(
65 | pattern="^[-\w\._]+$",
| ^^ W605
66 | max_length=90,
67 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_update.py:65:31: W605 [*] Invalid escape sequence: `\.`
|
63 | id_part="child_name_1",
64 | fmt=AAZStrArgFormat(
65 | pattern="^[-\w\._]+$",
| ^^ W605
66 | max_length=90,
67 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_wait.py:60:29: W605 [*] Invalid escape sequence: `\w`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | max_length=90,
62 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\node\_wait.py:60:31: W605 [*] Invalid escape sequence: `\.`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | max_length=90,
62 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\server\_list.py:64:29: W605 [*] Invalid escape sequence: `\w`
|
62 | required=True,
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\configuration\server\_list.py:64:31: W605 [*] Invalid escape sequence: `\.`
|
62 | required=True,
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | max_length=90,
66 | min_length=1,
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_create.py:63:29: W605 [*] Invalid escape sequence: `\w`
|
61 | required=True,
62 | fmt=AAZStrArgFormat(
63 | pattern="^[-\w\._]+$",
| ^^ W605
64 | ),
65 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_create.py:63:31: W605 [*] Invalid escape sequence: `\.`
|
61 | required=True,
62 | fmt=AAZStrArgFormat(
63 | pattern="^[-\w\._]+$",
| ^^ W605
64 | ),
65 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_create.py:79:76: W605 [*] Invalid escape sequence: `\.`
|
77 | required=True,
78 | fmt=AAZStrArgFormat(
79 | pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
| ^^ W605
80 | ),
81 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_create.py:88:76: W605 [*] Invalid escape sequence: `\.`
|
86 | required=True,
87 | fmt=AAZStrArgFormat(
88 | pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
| ^^ W605
89 | ),
90 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_delete.py:66:29: W605 [*] Invalid escape sequence: `\w`
|
64 | id_part="child_name_1",
65 | fmt=AAZStrArgFormat(
66 | pattern="^[-\w\._]+$",
| ^^ W605
67 | ),
68 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_delete.py:66:31: W605 [*] Invalid escape sequence: `\.`
|
64 | id_part="child_name_1",
65 | fmt=AAZStrArgFormat(
66 | pattern="^[-\w\._]+$",
| ^^ W605
67 | ),
68 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_show.py:64:29: W605 [*] Invalid escape sequence: `\w`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | ),
66 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_show.py:64:31: W605 [*] Invalid escape sequence: `\.`
|
62 | id_part="child_name_1",
63 | fmt=AAZStrArgFormat(
64 | pattern="^[-\w\._]+$",
| ^^ W605
65 | ),
66 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_update.py:67:29: W605 [*] Invalid escape sequence: `\w`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | ),
69 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_update.py:67:31: W605 [*] Invalid escape sequence: `\.`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | ),
69 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_update.py:82:76: W605 [*] Invalid escape sequence: `\.`
|
80 | help="The end IP address of the cluster firewall rule. Must be IPv4 format.",
81 | fmt=AAZStrArgFormat(
82 | pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
| ^^ W605
83 | ),
84 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_update.py:90:76: W605 [*] Invalid escape sequence: `\.`
|
88 | help="The start IP address of the cluster firewall rule. Must be IPv4 format.",
89 | fmt=AAZStrArgFormat(
90 | pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$",
| ^^ W605
91 | ),
92 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_wait.py:60:29: W605 [*] Invalid escape sequence: `\w`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | ),
62 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\firewall_rule\_wait.py:60:31: W605 [*] Invalid escape sequence: `\.`
|
58 | id_part="child_name_1",
59 | fmt=AAZStrArgFormat(
60 | pattern="^[-\w\._]+$",
| ^^ W605
61 | ),
62 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_create.py:66:29: W605 [*] Invalid escape sequence: `\w`
|
64 | required=True,
65 | fmt=AAZStrArgFormat(
66 | pattern="^[-\w\._]+$",
| ^^ W605
67 | ),
68 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_create.py:66:31: W605 [*] Invalid escape sequence: `\.`
|
64 | required=True,
65 | fmt=AAZStrArgFormat(
66 | pattern="^[-\w\._]+$",
| ^^ W605
67 | ),
68 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_delete.py:69:29: W605 [*] Invalid escape sequence: `\w`
|
67 | id_part="child_name_1",
68 | fmt=AAZStrArgFormat(
69 | pattern="^[-\w\._]+$",
| ^^ W605
70 | ),
71 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_delete.py:69:31: W605 [*] Invalid escape sequence: `\.`
|
67 | id_part="child_name_1",
68 | fmt=AAZStrArgFormat(
69 | pattern="^[-\w\._]+$",
| ^^ W605
70 | ),
71 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_show.py:67:29: W605 [*] Invalid escape sequence: `\w`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | ),
69 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_show.py:67:31: W605 [*] Invalid escape sequence: `\.`
|
65 | id_part="child_name_1",
66 | fmt=AAZStrArgFormat(
67 | pattern="^[-\w\._]+$",
| ^^ W605
68 | ),
69 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_update.py:70:29: W605 [*] Invalid escape sequence: `\w`
|
68 | id_part="child_name_1",
69 | fmt=AAZStrArgFormat(
70 | pattern="^[-\w\._]+$",
| ^^ W605
71 | ),
72 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_update.py:70:31: W605 [*] Invalid escape sequence: `\.`
|
68 | id_part="child_name_1",
69 | fmt=AAZStrArgFormat(
70 | pattern="^[-\w\._]+$",
| ^^ W605
71 | ),
72 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_wait.py:63:29: W605 [*] Invalid escape sequence: `\w`
|
61 | id_part="child_name_1",
62 | fmt=AAZStrArgFormat(
63 | pattern="^[-\w\._]+$",
| ^^ W605
64 | ),
65 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\cosmosdb\aaz\latest\cosmosdb\postgres\role\_wait.py:63:31: W605 [*] Invalid escape sequence: `\.`
|
61 | id_part="child_name_1",
62 | fmt=AAZStrArgFormat(
63 | pattern="^[-\w\._]+$",
| ^^ W605
64 | ),
65 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\monitor\aaz\latest\monitor\diagnostic_settings\subscription\_create.py:21:163: W605 [*] Invalid escape sequence: `\ `
|
20 | :example: Create diagnostic settings for a subscription with EventHub.
21 | az monitor diagnostic-settings subscription create -n {name} --location westus --event-hub- auth-rule {eventHubRuleID} --storage-account {storageAccount} \ --logs "[{category:Security,enabled:true},{category:Administrative,enabled:true},{category:ServiceHealth,enabled:true},{category:Alert,enabled:true},{category:Recommendation,enabled:true},{category:Policy,enabled:true},{category:Autoscale,enabled:true},{category:ResourceHealth,enabled:true}]"
|
^^ W605
22 | """
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\monitor\tests\latest\test_monitor_metric_alert_scenarios.py:602:55: W605 [*] Invalid escape sequence: `\%`
|
600 | self.cmd(
601 | 'monitor metrics alert create -g {rg} -n {alert2} --scopes {sa_id} --region westus --description "Test"'
602 | ' --condition "avg My-Ns.\\LogicalDisk(C:)\% Free Space = 1 with skipMetricValidation"',
| ^^ W605
603 | checks=[
604 | self.check('description', 'Test'),
|
= help: Add backslash to escape sequence
src\azure-cli\azure\cli\command_modules\monitor\tests\latest\test_monitor_metric_alert_scenarios.py:607:78: W605 [*] Invalid escape sequence: `\%`
|
605 | self.check('length(criteria.allOf)', 1),
606 | self.check('criteria.allOf[0].metricNamespace', 'My-Ns'),
607 | self.check('criteria.allOf[0].metricName', '\\LogicalDisk(C:)\% Free Space'),
| ^^ W605
608 | self.check('criteria.allOf[0].skipMetricValidation', True)
609 | ])
|
= help: Add backslash to escape sequence
src\azure-cli\azure\cli\command_modules\network\aaz\profile_2017_03_09_profile\network\lb\rule\_update.py:24:81: W605 [*] Invalid escape sequence: `\ `
|
23 | :example: Update a load balancing rule to support HA ports.
24 | az network lb rule update -g MyResourceGroup --lb-name MyLb -n MyLbRule \ --protocol All --frontend-port 0 --backend-port 0
| ^^ W605
25 | """
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\aaz\profile_2018_03_01_hybrid\network\lb\rule\_update.py:24:81: W605 [*] Invalid escape sequence: `\ `
|
23 | :example: Update a load balancing rule to support HA ports.
24 | az network lb rule update -g MyResourceGroup --lb-name MyLb -n MyLbRule \ --protocol All --frontend-port 0 --backend-port 0
| ^^ W605
25 | """
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\aaz\profile_2020_09_01_hybrid\network\lb\rule\_update.py:24:81: W605 [*] Invalid escape sequence: `\ `
|
23 | :example: Update a load balancing rule to support HA ports.
24 | az network lb rule update -g MyResourceGroup --lb-name MyLb -n MyLbRule \ --protocol All --frontend-port 0 --backend-port 0
| ^^ W605
25 | """
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2196:192: W605 [*] Invalid escape sequence: `\/`
|
2194 | # manage rewrite rules with response-header-configurations
2195 | self.cmd('network application-gateway rewrite-rule create -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2196 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat1,"header-value-matcher":{{"ignore-case":true,"negate":true,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2197 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2198 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2196:194: W605 [*] Invalid escape sequence: `\/`
|
2194 | # manage rewrite rules with response-header-configurations
2195 | self.cmd('network application-gateway rewrite-rule create -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2196 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat1,"header-value-matcher":{{"ignore-case":true,"negate":true,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2197 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2198 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2196:211: W605 [*] Invalid escape sequence: `\.`
|
2194 | # manage rewrite rules with response-header-configurations
2195 | self.cmd('network application-gateway rewrite-rule create -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2196 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat1,"header-value-matcher":{{"ignore-case":true,"negate":true,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2197 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2198 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2203:114: W605 [*] Invalid escape sequence: `\/`
|
2201 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.ignoreCase', True),
2202 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', True),
2203 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern', "(https?)\/\/.*azurewebsites\.net(.*)$"),
|
^^ W605
2204 | ])
2205 | self.cmd(
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2203:116: W605 [*] Invalid escape sequence: `\/`
|
2201 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.ignoreCase', True),
2202 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', True),
2203 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern', "(https?)\/\/.*azurewebsites\.net(.*)$"),
|
^^ W605
2204 | ])
2205 | self.cmd(
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2203:133: W605 [*] Invalid escape sequence: `\.`
|
2201 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.ignoreCase', True),
2202 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', True),
2203 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern', "(https?)\/\/.*azurewebsites\.net(.*)$"),
|
^^ W605
2204 | ])
2205 | self.cmd(
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2207:188: W605 [*] Invalid escape sequence: `\/`
|
2205 | self.cmd(
2206 | 'network application-gateway rewrite-rule update -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2207 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat2,"header-value-matcher":{{"ignore-case":true,"negate":false,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2208 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2209 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2207:190: W605 [*] Invalid escape sequence: `\/`
|
2205 | self.cmd(
2206 | 'network application-gateway rewrite-rule update -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2207 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat2,"header-value-matcher":{{"ignore-case":true,"negate":false,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2208 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2209 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2207:207: W605 [*] Invalid escape sequence: `\.`
|
2205 | self.cmd(
2206 | 'network application-gateway rewrite-rule update -g {rg} --gateway-name {gw} --rule-set-name {set} -n {rule4} '
2207 | '--sequence 123 --response-header-configurations [{{"header-name":Set-Cookie,"header-value":hat2,"header-value-matcher":{{"ignore-case":true,"negate":false,"pattern":"(https?)\/\/.*azurewebsites\.net(.*)$"}}}}] --request-headers foo=bar '
|
^^ W605
2208 | '--modified-path "/def" --modified-query-string "a=b&c=d%20f"',
2209 | checks=[
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2215:37: W605 [*] Invalid escape sequence: `\/`
|
2213 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', False),
2214 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern',
2215 | "(https?)\/\/.*azurewebsites\.net(.*)$"),
| ^^ W605
2216 | ])
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2215:39: W605 [*] Invalid escape sequence: `\/`
|
2213 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', False),
2214 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern',
2215 | "(https?)\/\/.*azurewebsites\.net(.*)$"),
| ^^ W605
2216 | ])
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\network\tests\latest\test_network_commands.py:2215:56: W605 [*] Invalid escape sequence: `\.`
|
2213 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.negate', False),
2214 | self.check('actionSet.responseHeaderConfigurations[0].headerValueMatcher.pattern',
2215 | "(https?)\/\/.*azurewebsites\.net(.*)$"),
| ^^ W605
2216 | ])
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\storage\tests\latest\test_storage_batch_operations.py:170:49: W605 [*] Invalid escape sequence: `\/`
|
168 | if result and result[0]:
169 | res = result[0]
170 | self.assertRegex(res['Blob'], '^.*[^\/]+$')
| ^^ W605
171 | base_url = res['Blob'].split('/')[:3]
172 | container = res['Blob'].split('/')[3]
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_list_resize_options.py:53:29: W605 [*] Invalid escape sequence: `\w`
|
51 | id_part="name",
52 | fmt=AAZStrArgFormat(
53 | pattern="^[-\w\._]+$",
| ^^ W605
54 | ),
55 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_list_resize_options.py:53:31: W605 [*] Invalid escape sequence: `\.`
|
51 | id_part="name",
52 | fmt=AAZStrArgFormat(
53 | pattern="^[-\w\._]+$",
| ^^ W605
54 | ),
55 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_list_resize_options.py:62:29: W605 [*] Invalid escape sequence: `\w`
|
60 | id_part="child_name_1",
61 | fmt=AAZStrArgFormat(
62 | pattern="^[-\w\._]+$",
| ^^ W605
63 | ),
64 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_list_resize_options.py:62:31: W605 [*] Invalid escape sequence: `\.`
|
60 | id_part="child_name_1",
61 | fmt=AAZStrArgFormat(
62 | pattern="^[-\w\._]+$",
| ^^ W605
63 | ),
64 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_redeploy.py:53:29: W605 [*] Invalid escape sequence: `\w`
|
51 | id_part="name",
52 | fmt=AAZStrArgFormat(
53 | pattern="^[-\w\._]+$",
| ^^ W605
54 | ),
55 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_redeploy.py:53:31: W605 [*] Invalid escape sequence: `\.`
|
51 | id_part="name",
52 | fmt=AAZStrArgFormat(
53 | pattern="^[-\w\._]+$",
| ^^ W605
54 | ),
55 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_redeploy.py:62:29: W605 [*] Invalid escape sequence: `\w`
|
60 | id_part="child_name_1",
61 | fmt=AAZStrArgFormat(
62 | pattern="^[-\w\._]+$",
| ^^ W605
63 | ),
64 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\aaz\latest\vm\host\_redeploy.py:62:31: W605 [*] Invalid escape sequence: `\.`
|
60 | id_part="child_name_1",
61 | fmt=AAZStrArgFormat(
62 | pattern="^[-\w\._]+$",
| ^^ W605
63 | ),
64 | )
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\tests\latest\test_vm_commands.py:4725:143: W605 [*] Invalid escape sequence: `\.`
|
4723 | ])
4724 | from azure.core.exceptions import HttpResponseError
4725 | with self.assertRaisesRegex(HttpResponseError, 'Managed Images are not supported for virtual machines with security type TrustedLaunch\.'):
|
^^ W605
4726 | self.cmd('vmss update -g {rg} -n {vmss} --security-type TrustedLaunch')
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\tests\latest\test_vm_commands.py:11423:54: W605 [*] Invalid escape sequence: `\d`
|
11421 | # show snapshot B, check completionPercent
11422 | self.cmd('snapshot show -g {rg2} -n snapb', checks=[
11423 | self.check_pattern('completionPercent', '\d?.\d?')
| ^^ W605
11424 | ])
|
= help: Use a raw string literal
src\azure-cli\azure\cli\command_modules\vm\tests\latest\test_vm_commands.py:11423:58: W605 [*] Invalid escape sequence: `\d`
|
11421 | # show snapshot B, check completionPercent
11422 | self.cmd('snapshot show -g {rg2} -n snapb', checks=[
11423 | self.check_pattern('completionPercent', '\d?.\d?')
| ^^ W605
11424 | ])
|
= help: Use a raw string literal
Found 94 errors.
[*] 94 fixable with the `--fix` option.
First run of just "az" results in these three:
/projectdir/.venv/lib/python3.12/site-packages/azure/batch/models/_models_py3.py:4839: SyntaxWarning: invalid escape sequence '\s'
"""A Job Preparation Task to run before any Tasks of the Job on any given
/projectdir/.venv/lib/python3.12/site-packages/azure/mgmt/servicelinker/models/_models_py3.py:77: SyntaxWarning: invalid escape sequence '\ '
"""The access key directly from target resource properties, which target service is Azure
/projectdir/.venv/lib/python3.12/site-packages/azure/mgmt/servicelinker/models/_models_py3.py:114: SyntaxWarning: invalid escape sequence '\ '
"""
Welcome to Azure CLI!
---------------------
Use `az -h` to see available commands or go to https://aka.ms/cli.
Telemetry
---------
The Azure CLI collects usage data in order to improve your experience.
The data is anonymous and does not include commandline argument values.
The data is collected by Microsoft.
You can change your telemetry settings with `az configure`.
/\
/ \ _____ _ _ ___ _
/ /\ \ |_ / | | | \'__/ _\
/ ____ \ / /| |_| | | | __/
/_/ \_\/___|\__,_|_| \___|
versions:
+ azure-cli==2.64.0
+ azure-cli-core==2.64.0
+ azure-cli-telemetry==1.1.0
ruff check ./src --select W605 --ignore-noqa
doesn't give any error anymore. I think this issue can be closed. Maybe a CI check can be added to avoid regressions.