Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

Commit 69c522c

Browse files
committed
Implemented issue #13
The ValidateSet does not support values with spaces, therefore all name of Azure Locations are trimmed.
1 parent 159a906 commit 69c522c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Sitecore.Azure/Sitecore.Azure.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ function Publish-SitecoreSqlDatabase
625625

626626
[Parameter(Position=4, Mandatory = $false)]
627627
[ValidateNotNullOrEmpty()]
628+
[ValidateSet("CentralUS", "EastUS", "EastUS2", "NorthCentralUS", "SouthCentralUS", "WestUS",
629+
"NorthEurope", "WestEurope", "EastAsia", "SoutheastAsia", "JapanEast", "JapanWest",
630+
"BrazilSouth", "AustraliaEast", "AustraliaSoutheast", "CentralIndia", "SouthIndia", "WestIndia")]
628631
[System.String]
629632
$AzureResourceGroupLocation = 'West US',
630633

0 commit comments

Comments
 (0)