@@ -803,7 +803,7 @@ PS C:\>Get-AzureSqlDatabaseCopy -ServerName "lpqd0zbr8y" -DatabaseCopy $myDbC
803
803
<maml : para >
804
804
</maml : para >
805
805
</maml : introduction >
806
- <dev : code >PS C:\> C:\PS> $exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $blobName
806
+ <dev : code >PS C:\> C:\PS> $exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -DatabaseName $DatabaseName -BlobName $blobName
807
807
C:\PS> Get-AzureSqlDatabaseImportExportStatus -Request $exportRequest</dev : code >
808
808
<dev : remarks >
809
809
<maml : para >This example returns the status of an export request</maml : para >
@@ -5608,37 +5608,6 @@ Start-AzureSqlDatabaseCopy returns immediately without waiting for the completio
5608
5608
<maml : para >Use the Start-AzureSqlDatabaseExport cmdlet to initiate an export operation from an Azure SQL Database to Blob storage. The operation requires a database server connection context. Use the Get-AzureSqlDatabaseImportExportStatus cmdlet to get status on the export operation.</maml : para >
5609
5609
</maml : description >
5610
5610
<command : syntax >
5611
- <command : syntaxItem >
5612
- <maml : name >Start-AzureSqlDatabaseExport</maml : name >
5613
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 0" >
5614
- <maml : name >SqlConnectionContext</maml : name >
5615
- <maml : description >
5616
- <maml : para >The connection context to a SQL Database Server containing the SQL Database.</maml : para >
5617
- </maml : description >
5618
- <command : parameterValue required =" true" variableLength =" false" >ServerDataServiceSqlAuth</command : parameterValue >
5619
- </command : parameter >
5620
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 1" >
5621
- <maml : name >StorageContainer</maml : name >
5622
- <maml : description >
5623
- <maml : para >The Blob storage container object into which the data is exported.</maml : para >
5624
- </maml : description >
5625
- <command : parameterValue required =" true" variableLength =" false" >AzureStorageContainer</command : parameterValue >
5626
- </command : parameter >
5627
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 2" >
5628
- <maml : name >DatabaseName</maml : name >
5629
- <maml : description >
5630
- <maml : para >The name of the database from which the data is exported.</maml : para >
5631
- </maml : description >
5632
- <command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
5633
- </command : parameter >
5634
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 3" >
5635
- <maml : name >BlobName</maml : name >
5636
- <maml : description >
5637
- <maml : para >The name of the Blob storage into which to export the database.</maml : para >
5638
- </maml : description >
5639
- <command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
5640
- </command : parameter >
5641
- </command : syntaxItem >
5642
5611
<command : syntaxItem >
5643
5612
<maml : name >Start-AzureSqlDatabaseExport</maml : name >
5644
5613
<command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 0" >
@@ -5692,19 +5661,6 @@ Start-AzureSqlDatabaseCopy returns immediately without waiting for the completio
5692
5661
<dev : defaultValue >
5693
5662
</dev : defaultValue >
5694
5663
</command : parameter >
5695
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 1" >
5696
- <maml : name >StorageContainer</maml : name >
5697
- <maml : description >
5698
- <maml : para >The Blob storage container object into which the data is exported.</maml : para >
5699
- </maml : description >
5700
- <command : parameterValue required =" true" variableLength =" false" >AzureStorageContainer</command : parameterValue >
5701
- <dev : type >
5702
- <maml : name >AzureStorageContainer</maml : name >
5703
- <maml : uri />
5704
- </dev : type >
5705
- <dev : defaultValue >
5706
- </dev : defaultValue >
5707
- </command : parameter >
5708
5664
<command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 2" >
5709
5665
<maml : name >DatabaseName</maml : name >
5710
5666
<maml : description >
@@ -5810,8 +5766,7 @@ Start-AzureSqlDatabaseCopy returns immediately without waiting for the completio
5810
5766
<dev : code >PS C:\> C:\PS> $credential = Get-Credential
5811
5767
C:\PS> $SqlCtx = New-AzureSqlDatabaseServerContext -ServerName $ServerName -Credentials $credential
5812
5768
C:\PS> $StorageCtx = New-AzureStorageContext -StorageAccountName $StorageName -StorageAccountKey $StorageKey
5813
- C:\PS> $Container = Get-AzureStorageContainer -Name $ContainerName -Context $StorageCtx
5814
- C:\PS> $exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $BlobName</dev : code >
5769
+ C:\PS> $exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -StorageContext $StorageCtx -DatabaseName $DatabaseName -BlobName $BlobName</dev : code >
5815
5770
<dev : remarks >
5816
5771
<maml : para >This example initiates an export process from the SQL Database, "$DatabaseName", to the Blob storage, "$BlobName".</maml : para >
5817
5772
</dev : remarks >
@@ -5855,51 +5810,6 @@ C:\PS>$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
5855
5810
<maml : para >Use the Start-AzureSqlDatabaseImport cmdlet to initiate an import operation from Blob storage to an Azure SQL Database. If the database does not exist, it is created using the size and edition values specified. The operation requires a database server connection context. Use the Get-AzureSqlDatabaseImportExportStatus cmdlet to get status on the import operation.</maml : para >
5856
5811
</maml : description >
5857
5812
<command : syntax >
5858
- <command : syntaxItem >
5859
- <maml : name >Start-AzureSqlDatabaseImport</maml : name >
5860
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 0" >
5861
- <maml : name >SqlConnectionContext</maml : name >
5862
- <maml : description >
5863
- <maml : para >The connection context to a SQL Database Server containing the SQL Database.</maml : para >
5864
- </maml : description >
5865
- <command : parameterValue required =" true" variableLength =" false" >ServerDataServiceSqlAuth</command : parameterValue >
5866
- </command : parameter >
5867
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 1" >
5868
- <maml : name >StorageContainer</maml : name >
5869
- <maml : description >
5870
- <maml : para >The name of the storage container containing the Blob from which to import.</maml : para >
5871
- </maml : description >
5872
- <command : parameterValue required =" true" variableLength =" false" >AzureStorageContainer</command : parameterValue >
5873
- </command : parameter >
5874
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 2" >
5875
- <maml : name >DatabaseName</maml : name >
5876
- <maml : description >
5877
- <maml : para >The name of the database into which the data is imported. If the database does not exist, it is created with this name.</maml : para >
5878
- </maml : description >
5879
- <command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
5880
- </command : parameter >
5881
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 3" >
5882
- <maml : name >BlobName</maml : name >
5883
- <maml : description >
5884
- <maml : para >The name of the Blob storage from which to import the database.</maml : para >
5885
- </maml : description >
5886
- <command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
5887
- </command : parameter >
5888
- <command : parameter required =" false" variableLength =" false" globbing =" false" pipelineInput =" false" position =" named" >
5889
- <maml : name >Edition</maml : name >
5890
- <maml : description >
5891
- <maml : para >If the database does not exist, it is created as this edition. Acceptable values are Web and Business. The default is Web.</maml : para >
5892
- </maml : description >
5893
- <command : parameterValue required =" true" variableLength =" false" >DatabaseEdition</command : parameterValue >
5894
- </command : parameter >
5895
- <command : parameter required =" false" variableLength =" false" globbing =" false" pipelineInput =" false" position =" named" >
5896
- <maml : name >DatabaseMaxSize</maml : name >
5897
- <maml : description >
5898
- <maml : para >If the database does not exist, it is created with this maximum size in gigabytes. The acceptable values differ based on edition.</maml : para >
5899
- </maml : description >
5900
- <command : parameterValue required =" true" variableLength =" false" >Int32</command : parameterValue >
5901
- </command : parameter >
5902
- </command : syntaxItem >
5903
5813
<command : syntaxItem >
5904
5814
<maml : name >Start-AzureSqlDatabaseImport</maml : name >
5905
5815
<command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 0" >
@@ -5967,19 +5877,6 @@ C:\PS>$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
5967
5877
<dev : defaultValue >
5968
5878
</dev : defaultValue >
5969
5879
</command : parameter >
5970
- <command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 1" >
5971
- <maml : name >StorageContainer</maml : name >
5972
- <maml : description >
5973
- <maml : para >The name of the storage container containing the Blob from which to import.</maml : para >
5974
- </maml : description >
5975
- <command : parameterValue required =" true" variableLength =" false" >AzureStorageContainer</command : parameterValue >
5976
- <dev : type >
5977
- <maml : name >AzureStorageContainer</maml : name >
5978
- <maml : uri />
5979
- </dev : type >
5980
- <dev : defaultValue >
5981
- </dev : defaultValue >
5982
- </command : parameter >
5983
5880
<command : parameter required =" true" variableLength =" false" globbing =" false" pipelineInput =" false" position =" 2" >
5984
5881
<maml : name >DatabaseName</maml : name >
5985
5882
<maml : description >
@@ -6111,8 +6008,7 @@ C:\PS>$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
6111
6008
<dev : code >PS C:\> C:\PS> $credential = Get-Credential
6112
6009
C:\PS> $SqlCtx = New-AzureSqlDatabaseServerContext -ServerName $ServerName -Credentials $credential
6113
6010
C:\PS> $StorageCtx = New-AzureStorageContext -StorageAccountName $StorageName -StorageAccountKey $StorageKey
6114
- C:\PS> $Container = Get-AzureStorageContainer -Name $ContainerName -Context $StorageCtx
6115
- C:\PS> $importRequest = Start-AzureSqlDatabaseImport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $BlobName</dev : code >
6011
+ C:\PS> $importRequest = Start-AzureSqlDatabaseImport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -StorageContext $StorageContext -DatabaseName $DatabaseName -BlobName $BlobName</dev : code >
6116
6012
<dev : remarks >
6117
6013
<maml : para >This example initiates an import process from the Blob storage, "$BlobName", into the SQL Database, "DatabaseName".</maml : para >
6118
6014
</dev : remarks >
0 commit comments