Skip to content

Commit 5087e39

Browse files
authored
Merge pull request #189969 from mumian/0228-sql-extension
update the create storage account script
2 parents 16b4544 + d7f8f42 commit 5087e39

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

articles/azure-resource-manager/templates/template-tutorial-deploy-sql-extensions-bacpac.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Import SQL BACPAC files with templates
33
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
65
ms.topic: tutorial
7-
ms.author: jgao
8-
ms.custom: devx-track-azurepowershell
6+
97
#Customer intent: As a database administrator I want use ARM templates so that I can import a SQL BACPAC file.
108
---
119

@@ -89,9 +87,11 @@ The BACPAC file must be stored in an Azure Storage account before it can be impo
8987
-Blob $bacpacFileName `
9088
-Context $storageAccount.Context
9189

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+
"
9595
Write-Host "Press [ENTER] to continue ..."
9696
```
9797
@@ -138,7 +138,7 @@ The template used in this tutorial is stored in [GitHub](https://raw.githubuserc
138138
}
139139
```
140140
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**.
142142
143143
1. Add two resources to the template.
144144
@@ -222,7 +222,6 @@ Use the project name and location that were used when you prepared the BACPAC fi
222222
223223
```azurepowershell
224224
$projectName = Read-Host -Prompt "Enter the same project name that is used earlier"
225-
$location = Read-Host -Prompt "Enter the location (i.e. centralus)"
226225
$adminUsername = Read-Host -Prompt "Enter the SQL admin username"
227226
$adminPassword = Read-Host -Prompt "Enter the admin password" -AsSecureString
228227
$storageAccountKey = Read-Host -Prompt "Enter the storage account key"

0 commit comments

Comments
 (0)