You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
# Exports a database schema and user data from a SQL Server to a BACPAC package (.bacpac file).
1
+
# Exports a database schema and user data from a local SQL Server to a BACPAC package (.bacpac file).
2
2
functionExport-SitecoreAzureSqlDatabase
3
3
{
4
4
param([Parameter(Position=0,Mandatory=$true)]
@@ -451,22 +451,141 @@ function Get-SitecoreAzureSqlDatabaseConnectionString
451
451
452
452
<#
453
453
.SYNOPSIS
454
-
Describe the function here
454
+
Publishes one or more Sitecore SQL Server databases.
455
455
456
456
.DESCRIPTION
457
-
Describe the function in more detail
457
+
The Publish-SitecoreSqlDatabase cmdlet publishes one or more Sitecore SQL Server databases from a local SQL Server to Azure SQL Database Server.
458
+
459
+
This command creates the following Azure Resources, which are grouped in a single Resource Group using the same Azure data center location:
460
+
461
+
- Resource Group
462
+
- Storage Account
463
+
- SQL Database Server
464
+
- SQL Databases
458
465
459
-
.EXAMPLE
460
-
Give an example of how to use it
466
+
This command exports databases from a local SQL Server to a BACPAC packages (.bacpac files), and uploads to a Blob Container of a Storage Account. Initiates an import operation from Azure Blob storage to an Azure SQL Database.
Specifies the name of the local SQL Server the databases are in. The name must be in the following format {ComputerName}\{InstanceName}, such as "Oleg-PC\SQLEXPRESS".
473
+
474
+
.PARAMETERSqlServerAdminLogin
475
+
Specifies the SQL Server administrator name for the local server.
476
+
477
+
.PARAMETERSqlServerPassword
478
+
Specifies the SQL Server administrator password for the local server.
479
+
480
+
.PARAMETERSqlServerDatabaseList
481
+
Specifies the list of the database names to retrieve from a local server.
482
+
483
+
.PARAMETERAzureResourceGroupName
484
+
Specifies the name of the resource group in which to create Storage Account, SQL Server and SQL Databases are created. The resource name must be unique in the subscription.
485
+
486
+
.PARAMETERAzureResourceGroupLocation
487
+
Specifies the location of the resource group. Enter an Azure data center location, such as "West US" or "Southeast Asia". You can place a resource group in any location.
488
+
489
+
.PARAMETERAzureStorageAccountName
490
+
Specifies the name of the new Storage Account. The storage name must be globally unique.
491
+
492
+
.PARAMETERAzureSqlServerName
493
+
Specifies the name of the new SQL Database server. The server name must be globally unique.
494
+
495
+
.PARAMETERAzureSqlServerAdminLogin
496
+
Specifies the SQL Database server administrator name for the new server.
497
+
498
+
.PARAMETERAzureSqlServerPassword
499
+
Specifies the SQL Database server administrator password for the new server.
This command publishes the SQL Server database "sc81initial_core", "sc81initial_master" and "sc81initial_web" from the local SQL Server "Oleg-PC\SQLEXPRESS" to an Azure SQL Database Server.
This command publishes the SQL Server databases "sc81initial_web" from the local SQL Server "Oleg-PC\SQLEXPRESS" to an Azure SQL Database Server in the Resource Group "My-Company-Name" at the Azure data center "Australia East".
This command publishes the SQL Server databases "sc81initial_core" and "sc81initial_web" from the local SQL Server "Oleg-PC\SQLEXPRESS" to an Azure SQL Database Server using the Azure Storage Account "mycompanyname" for BACPAC packages (.bacpac files).
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 in the Azure data center "West Europe".
467
552
468
-
.PARAMETERlogname
469
-
The name of a file to write failed computer names to. Defaults to errors.txt.
This command publishes the SQL Server databases "sc81initial_core", "sc81initial_master" and "sc81initial_web" from the local SQL Server "Oleg-PCU\SQLEXPRESS" to Azure SQL Database Server "sitecore-azure" in the Resource Group "My-Company-Name" at the Azure data center "West Europe" using the Azure Storage Account "mycompanyname".
0 commit comments