@@ -281,7 +281,11 @@ function Import-SitecoreAzureSqlDatabase
281281 [Parameter (Position = 4 , Mandatory = $true )]
282282 [ValidateNotNull ()]
283283 [Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext ]
284- $StorageAccountContext
284+ $StorageAccountContext ,
285+ [Parameter (Position = 5 , Mandatory = $false )]
286+ [ValidateNotNullOrEmpty ()]
287+ [System.String ]
288+ $PricingTier
285289 )
286290
287291 $blobList = Get-AzureStorageBlob - Context $StorageAccountContext `
@@ -308,7 +312,7 @@ function Import-SitecoreAzureSqlDatabase
308312 $sqlDatabase = New-AzureRmSqlDatabase –ResourceGroupName $ResourceGroup.ResourceGroupName `
309313 –ServerName $SqlServerName `
310314 –DatabaseName $databaseName `
311- - RequestedServiceObjectiveName " S2 "
315+ - RequestedServiceObjectiveName $PricingTier
312316 }
313317
314318 $sqlDatabaseServerContext = New-AzureSqlDatabaseServerContext - ServerName $SqlServerName `
@@ -484,6 +488,19 @@ function Get-SitecoreAzureSqlDatabaseConnectionString
484488 . PARAMETER AzureSqlServerCredential
485489 Specifies the SQL Database server administrator credentials for the new server.
486490
491+ . PARAMETER PricingTier
492+ Specifies the SQL Database pricing tier to assign to the database. Valid values are:
493+ -- Basis
494+ -- S0
495+ -- S1
496+ -- S2
497+ -- S3
498+ -- P1
499+ -- P2
500+ -- P4
501+ -- P6
502+ -- P11
503+
487504 . EXAMPLE
488505 PS C:\> Publish-SitecoreSqlDatabase -SqlServerName "Oleg-PC\SQLEXPRESS" -SqlServerCredentials $credentials -SqlServerDatabaseList @("sc81initial_core", "sc81initial_master", "sc81initial_web")
489506
@@ -530,9 +547,9 @@ function Get-SitecoreAzureSqlDatabaseConnectionString
530547 ID=sitecore@sitecore-azure-50876f04;Password=Experienc3!;Trusted_Connection=False;Encrypt=True;Connection Timeout=30
531548
532549 . EXAMPLE
533- PS C:\> Publish-SitecoreSqlDatabase -SqlServerName "Oleg-PC\SQLEXPRESS" -SqlServerCredentials $localSqlServerCredentials -SqlServerDatabaseList @("sc81initial_core", "sc81initial_master", "sc81initial_web") -AzureSqlServerName "sitecore-azure" -AzureSqlServerCredentials $azureSqlServerCredentials
550+ PS C:\> Publish-SitecoreSqlDatabase -SqlServerName "Oleg-PC\SQLEXPRESS" -SqlServerCredentials $localSqlServerCredentials -SqlServerDatabaseList @("sc81initial_core", "sc81initial_master", "sc81initial_web") -AzureSqlServerName "sitecore-azure" -AzureSqlServerCredentials $azureSqlServerCredentials -PricingTier "P1"
534551
535- This command publishes the SQL Server databases "sc81initial_core", "sc81initial_master" and "sc81initial_web" from the local SQL Server "Oleg-PC\SQLEXPRESS" to an Azure SQL Database Server with specified credentials.
552+ This command publishes the SQL Server databases "sc81initial_core", "sc81initial_master" and "sc81initial_web" from the local SQL Server "Oleg-PC\SQLEXPRESS" to an Azure SQL Database Server with specified credentials and "P1 Premium" price tier .
536553
537554
538555
@@ -613,7 +630,12 @@ function Publish-SitecoreSqlDatabase
613630 [Parameter (Position = 7 , Mandatory = $false )]
614631 [ValidateNotNull ()]
615632 [System.Management.Automation.PSCredential ]
616- $AzureSqlServerCredentials = (New-Object System.Management.Automation.PSCredential (" sitecore" , (ConvertTo-SecureString " Experienc3!" - AsPlainText - Force)))
633+ $AzureSqlServerCredentials = (New-Object System.Management.Automation.PSCredential (" sitecore" , (ConvertTo-SecureString " Experienc3!" - AsPlainText - Force))),
634+
635+ [Parameter (Position = 8 , Mandatory = $false )]
636+ [ValidateNotNullOrEmpty ()]
637+ [System.String ]
638+ $PricingTier = " S2"
617639 )
618640
619641 $outputDirectory = Export-SitecoreAzureSqlDatabase - SqlServerName $SqlServerName `
@@ -636,7 +658,8 @@ function Publish-SitecoreSqlDatabase
636658 $importRequestList = Import-SitecoreAzureSqlDatabase - ResourceGroup $resourceGroup `
637659 - SqlServerName $AzureSqlServerName `
638660 - SqlServerCredentials $AzureSqlServerCredentials `
639- - StorageAccountContext $storageAccountContext
661+ - StorageAccountContext $storageAccountContext `
662+ - PricingTier $PricingTier
640663
641664 Get-SitecoreAzureSqlServerStatus - ImportRequestList $importRequestList
642665
0 commit comments