-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
After updating to Azure CLI 2.80.0 (coming from 2.74.0 with clean install), I am seeing multiple SyntaxWarning: invalid escape sequence messages when running communication extension commands.
While functionality remains intact, these warnings clutter the output.
Actual Behavior
When running any az communication command, the following warnings are printed:
.../azext_communication/aaz/latest/communication/_create.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_delete.py:52: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_link_notification_hub.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
(and similar warnings in _list_key.py, _regenerate_key.py, _show.py, etc.)
Related command
az communication email domain sender-username create
az communication email list
Errors
.../azext_communication/aaz/latest/communication/_create.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_delete.py:52: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
.../azext_communication/aaz/latest/communication/_link_notification_hub.py:50: SyntaxWarning: invalid escape sequence '\w'
pattern="^[-\w]+$",
Issue script & Debug output
N/A
Expected behavior
No SyntaxWarnings
Environment Summary
- Azure CLI Core: 2.80.0
- Communication Extension: 1.14.0
- OS: Windows 11
Additional context
No response