[BUG]: Microsoft.DocumentDB/mongoClusters/firewallRules - Name parameter regex pattern incorrect #34367
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
API Spec link
azure-rest-api-specs/specification/mongocluster/resource-manager/Microsoft.DocumentDB/preview/2024-10-01-preview/mongoCluster.json
Line 593 in b713df2
API Spec version
2024-02-15-preview
Describe the bug
There is a regex specified for the 'firewallRule' name parameter, that is ^[a-zA-Z0-9][-_.a-zA-Z0-9]* (ref), which is great, as it is pulled from here and published in all kinds of documentation.
There is one catch though, and that is that it 'seems' the regex is not 100% correct, and the character . is actually not allowed in the name.
Expected behavior
Either
.
should be removed from the validation pattern - or - if it should actually be alowed by the service.Actual behavior
Trying to deploy a firewall-rule with a
.
in its name leads to an internal server error and a non-terminating deployment (i.e., it run's forever until it eventually times out).Reproduction Steps
Try to deploy a firewall rule with
.
in its name. E.g.allow-1.2.3.4-to-5.6.7.8
Environment
No response
The text was updated successfully, but these errors were encountered: