Skip to content

Commit bc7d55d

Browse files
committed
make it compliant with the arm quickstart guidance
1 parent 31823ce commit bc7d55d

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

articles/sql-database/sql-database-single-database-get-started-template.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,23 @@ A single database has a defined set of compute, memory, IO, and storage resource
3131

3232
### Review the template
3333

34-
The template used in this quickstart is from [Azure Quickstart templates]()
34+
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-sql-logical-server/)
3535

36-
The following JSON file is the template that is used in this article. The template is stored in [GitHub](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/SQLServerAndDatabase/azuredeploy.json). More Azure SQL database template samples can be found in [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Sql&pageNumber=1&sort=Popular).
36+
:::code language="json" source="~/quickstart-templates/101-sql-logical-server/azuredeploy.json" range="1-163" highlight="63-132":::
3737

38-
[!code-json[create-azure-sql-database-server-and-database](~/resourcemanager-templates/SQLServerAndDatabase/azuredeploy.json)]
38+
These resources are defined in the template:
39+
40+
- [**Microsoft.Sql/servers**](/azure/templates/microsoft.sql/servers)
41+
- [**Microsoft.Sql/servers/firewallRules**](/azure/templates/microsoft.sql/servers/firewallrules)
42+
- [**Microsoft.Sql/servers/securityAlertPolicies**](/azure/templates/microsoft.sql/servers/securityalertpolicies)
43+
- [**Microsoft.Sql/servers/vulnerabilityAssessments**](/azure/templates/microsoft.sql/servers/vulnerabilityassessments)
44+
- [**Microsoft.Sql/servers/connectionPolicies**](/azure/templates/microsoft.sql/servers/connectionpolicies)
45+
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageaccounts)
46+
- [**Microsoft.Storage/storageAccounts/providers/roleAssignments**](/azure/templates/microsoft.authorization/roleassignments)
47+
48+
More Azure SQL database template samples can be found in [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Sql&pageNumber=1&sort=Popular).
49+
50+
### Deploy the template
3951

4052
Select **Try it** from the following PowerShell code block to open Azure Cloud Shell.
4153

@@ -50,7 +62,7 @@ $adminPassword = Read-Host -Prompt "Enter the SQl server administrator password"
5062
$resourceGroupName = "${projectName}rg"
5163
5264
New-AzResourceGroup -Name $resourceGroupName -Location $location
53-
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateFile "D:\GitHub\azure-docs-json-samples\SQLServerAndDatabase\azuredeploy.json" -projectName $projectName -adminUser $adminUser -adminPassword $adminPassword
65+
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-sql-logical-server/azuredeploy.json" -administratorLogin $adminUser -administratorLoginPassword $adminPassword
5466
5567
Read-Host -Prompt "Press [ENTER] to continue ..."
5668
```
@@ -69,15 +81,15 @@ az group create --location $location --name $resourceGroupName
6981
7082
az group deployment create -g $resourceGroupName --template-uri "D:\GitHub\azure-docs-json-samples\SQLServerAndDatabase\azuredeploy.json" `
7183
--parameters 'projectName=' + $projectName \
72-
'adminUser=' + $adminUser \
73-
'adminPassword=' + $adminPassword
84+
'administratorLogin=' + $adminUser \
85+
'administratorLoginPassword=' + $adminPassword
7486
7587
Read-Host -Prompt "Press [ENTER] to continue ..."
7688
```
7789

7890
* * *
7991

80-
## Query the database
92+
## Validate the deployment
8193

8294
To query the database, see [Query the database](./sql-database-single-database-get-started.md#query-the-database).
8395

@@ -112,3 +124,4 @@ az group delete --name $resourceGroupName
112124
- [Connect and query using Azure Data Studio](https://docs.microsoft.com/sql/azure-data-studio/quickstart-sql-database?toc=/azure/sql-database/toc.json)
113125
- To create a single database using Azure CLI, see [Azure CLI samples](sql-database-cli-samples.md).
114126
- To create a single database using Azure PowerShell, see [Azure PowerShell samples](sql-database-powershell-samples.md).
127+
- To learn how to create Resource Manager templates, see [Create your first template](../azure-resource-manager/templates/template-tutorial-create-first-template.md).

0 commit comments

Comments
 (0)