Commit 64fe6ca
authored
* {AzurePostgresql} fixes #22302 fix the regex for serverName property
fixes #22302
PR to fix the regex for serverName property
As per [this](https://learn.microsoft.com/en-us/azure/postgresql/single-server/tutorial-design-database-using-azure-portal#create-an-azure-database-for-postgresql) docs, the Postgresql Server Name should have the below pattern:
-Server name must be at least 3 characters and at most 63 characters.
-Server name must only contain lowercase letters, numbers, and hyphens. The server name must not start or end in a hyphen.
-Server name must be available.
Current Regex is incorrect: `^[a-z][a-z0-9]*$` as it doesn't allow the hyphen. The correct Regex pattern should be `^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*`
* Update common-types.json
1 parent c591889 commit 64fe6ca
File tree
2 files changed
+2
-2
lines changed- specification/postgresql/resource-manager
- Microsoft.DBforPostgreSQL/preview/2022-03-08-preview
- types
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments