|
1 | 1 | ---
|
2 | 2 | title: Import SQL BACPAC files with templates
|
3 | 3 | description: Learn how to use Azure SQL Database extensions to import SQL BACPAC files with Azure Resource Manager templates (ARM templates).
|
4 |
| -author: mumian |
5 |
| -ms.date: 09/30/2021 |
| 4 | +ms.date: 02/28/2022 |
6 | 5 | ms.topic: tutorial
|
7 |
| -ms.author: jgao |
8 |
| -ms.custom: devx-track-azurepowershell |
| 6 | + |
9 | 7 | #Customer intent: As a database administrator I want use ARM templates so that I can import a SQL BACPAC file.
|
10 | 8 | ---
|
11 | 9 |
|
@@ -89,9 +87,11 @@ The BACPAC file must be stored in an Azure Storage account before it can be impo
|
89 | 87 | -Blob $bacpacFileName `
|
90 | 88 | -Context $storageAccount.Context
|
91 | 89 |
|
92 |
| - Write-Host "The storage account key is $storageAccountKey" |
93 |
| - Write-Host "The BACPAC file URL is https://$storageAccountName.blob.core.windows.net/$containerName/$bacpacFileName" |
94 |
| - Write-Host "The project name and location are $projectName and $location" |
| 90 | + Write-Host "The project name: $projectName` |
| 91 | + The location: $location` |
| 92 | + The storage account key: $storageAccountKey` |
| 93 | + The BACPAC file URL: https://$storageAccountName.blob.core.windows.net/$containerName/$bacpacFileName` |
| 94 | + " |
95 | 95 | Write-Host "Press [ENTER] to continue ..."
|
96 | 96 | ```
|
97 | 97 |
|
@@ -138,7 +138,7 @@ The template used in this tutorial is stored in [GitHub](https://raw.githubuserc
|
138 | 138 | }
|
139 | 139 | ```
|
140 | 140 |
|
141 |
| - Add a comma after the `adminPassword` property's closing curly brace (`}`). To format the JSON file from Visual Studio Code, select Shift+Alt+F. |
| 141 | + Add a comma after the `adminPassword` property's closing curly brace (`}`). To format the JSON file from Visual Studio Code, select **Shift+Alt+F**. |
142 | 142 |
|
143 | 143 | 1. Add two resources to the template.
|
144 | 144 |
|
@@ -222,7 +222,6 @@ Use the project name and location that were used when you prepared the BACPAC fi
|
222 | 222 |
|
223 | 223 | ```azurepowershell
|
224 | 224 | $projectName = Read-Host -Prompt "Enter the same project name that is used earlier"
|
225 |
| - $location = Read-Host -Prompt "Enter the location (i.e. centralus)" |
226 | 225 | $adminUsername = Read-Host -Prompt "Enter the SQL admin username"
|
227 | 226 | $adminPassword = Read-Host -Prompt "Enter the admin password" -AsSecureString
|
228 | 227 | $storageAccountKey = Read-Host -Prompt "Enter the storage account key"
|
|
0 commit comments