diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index dcb1fa845e1..e5c1c4fad45 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +upcoming +++++++ +* 'az containerapp create': fix `InvalidArgumentValueError` exception when binding has `-` dash in its name. + 0.3.36 ++++++ * 'az containerapp hostname bind': fix exception when not bringing --validation-method inputs diff --git a/src/containerapp/azext_containerapp/_utils.py b/src/containerapp/azext_containerapp/_utils.py index 5c7ce6f63c6..6f7a4116d01 100644 --- a/src/containerapp/azext_containerapp/_utils.py +++ b/src/containerapp/azext_containerapp/_utils.py @@ -467,7 +467,7 @@ def process_service(cmd, resource_list, service_name, arg_dict, subscription_id, def validate_binding_name(binding_name): - pattern = r'^(?=.{1,60}$)[a-zA-Z0-9._]+$' + pattern = r'^(?=.{1,60}$)[a-zA-Z0-9._-]+$' return bool(re.match(pattern, binding_name))