Skip to content

Commit 2fb84c1

Browse files
authored
Merge pull request Azure#4619 from trgrie/preview
Remove StorageContainer Parameter from Import/Export Commands
2 parents edd4947 + 2816742 commit 2fb84c1

File tree

1 file changed

+3
-107
lines changed

1 file changed

+3
-107
lines changed

src/ServiceManagement/Sql/Commands.SqlDatabase/Microsoft.WindowsAzure.Commands.SqlDatabase.dll-Help.xml

Lines changed: 3 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ PS C:\>Get-AzureSqlDatabaseCopy -ServerName "lpqd0zbr8y" -DatabaseCopy $myDbC
803803
<maml:para>
804804
</maml:para>
805805
</maml:introduction>
806-
<dev:code>PS C:\&gt; C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $blobName
806+
<dev:code>PS C:\&gt; C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -DatabaseName $DatabaseName -BlobName $blobName
807807
C:\PS&gt;Get-AzureSqlDatabaseImportExportStatus -Request $exportRequest</dev:code>
808808
<dev:remarks>
809809
<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
56085608
<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>
56095609
</maml:description>
56105610
<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>
56425611
<command:syntaxItem>
56435612
<maml:name>Start-AzureSqlDatabaseExport</maml:name>
56445613
<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
56925661
<dev:defaultValue>
56935662
</dev:defaultValue>
56945663
</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>
57085664
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="2">
57095665
<maml:name>DatabaseName</maml:name>
57105666
<maml:description>
@@ -5810,8 +5766,7 @@ Start-AzureSqlDatabaseCopy returns immediately without waiting for the completio
58105766
<dev:code>PS C:\&gt; C:\PS&gt;$credential = Get-Credential
58115767
C:\PS&gt;$SqlCtx = New-AzureSqlDatabaseServerContext -ServerName $ServerName -Credentials $credential
58125768
C:\PS&gt;$StorageCtx = New-AzureStorageContext -StorageAccountName $StorageName -StorageAccountKey $StorageKey
5813-
C:\PS&gt;$Container = Get-AzureStorageContainer -Name $ContainerName -Context $StorageCtx
5814-
C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $BlobName</dev:code>
5769+
C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -StorageContext $StorageCtx -DatabaseName $DatabaseName -BlobName $BlobName</dev:code>
58155770
<dev:remarks>
58165771
<maml:para>This example initiates an export process from the SQL Database, "$DatabaseName", to the Blob storage, "$BlobName".</maml:para>
58175772
</dev:remarks>
@@ -5855,51 +5810,6 @@ C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
58555810
<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>
58565811
</maml:description>
58575812
<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>
59035813
<command:syntaxItem>
59045814
<maml:name>Start-AzureSqlDatabaseImport</maml:name>
59055815
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="0">
@@ -5967,19 +5877,6 @@ C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
59675877
<dev:defaultValue>
59685878
</dev:defaultValue>
59695879
</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>
59835880
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="2">
59845881
<maml:name>DatabaseName</maml:name>
59855882
<maml:description>
@@ -6111,8 +6008,7 @@ C:\PS&gt;$exportRequest = Start-AzureSqlDatabaseExport -SqlConnectionContext $Sq
61116008
<dev:code>PS C:\&gt; C:\PS&gt;$credential = Get-Credential
61126009
C:\PS&gt;$SqlCtx = New-AzureSqlDatabaseServerContext -ServerName $ServerName -Credentials $credential
61136010
C:\PS&gt;$StorageCtx = New-AzureStorageContext -StorageAccountName $StorageName -StorageAccountKey $StorageKey
6114-
C:\PS&gt;$Container = Get-AzureStorageContainer -Name $ContainerName -Context $StorageCtx
6115-
C:\PS&gt;$importRequest = Start-AzureSqlDatabaseImport -SqlConnectionContext $SqlCtx -StorageContainer $Container -DatabaseName $DatabaseName -BlobName $BlobName</dev:code>
6011+
C:\PS&gt;$importRequest = Start-AzureSqlDatabaseImport -SqlConnectionContext $SqlCtx -StorageContainerName $ContainerName -StorageContext $StorageContext -DatabaseName $DatabaseName -BlobName $BlobName</dev:code>
61166012
<dev:remarks>
61176013
<maml:para>This example initiates an import process from the Blob storage, "$BlobName", into the SQL Database, "DatabaseName".</maml:para>
61186014
</dev:remarks>

0 commit comments

Comments
 (0)