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

Commit 504446c

Browse files
committed
Fixed issue #6.
The default names for the 'StorageAccountName' and 'SqlServerName' now are based on (first segment of) Azure Subscription ID.
1 parent d84e7aa commit 504446c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sitecore.Azure/Sitecore.Azure.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,12 @@ function Publish-SitecoreSqlDatabase
541541
[ValidateNotNullOrEmpty()]
542542
[ValidateLength(3, 24)]
543543
[System.String]
544-
$AzureStorageAccountName = "sitecoreazure{0}" -f (Get-Date -format yyyyMd),
544+
$AzureStorageAccountName = "sitecoreazure{0}" -f (Get-AzureRmContext).Subscription.SubscriptionId.Substring(0, 8),
545545

546546
[Parameter(Position=7, Mandatory = $false)]
547547
[ValidateNotNullOrEmpty()]
548548
[System.String]
549-
$AzureSqlServerName = "sitecore-azure-{0}" -f (Get-Date -format yyyyMd), #([Guid]::NewGuid().Guid.Substring(0, 8)),
549+
$AzureSqlServerName = "sitecore-azure-{0}" -f (Get-AzureRmContext).Subscription.SubscriptionId.Substring(0, 8),
550550

551551
[Parameter(Position=8, Mandatory = $false)]
552552
[ValidateNotNullOrEmpty()]

0 commit comments

Comments
 (0)