Skip to content

Commit b2c3928

Browse files
authored
Merge pull request #108149 from mumian/0317-sql
0317 sql
2 parents 94644cb + 4b980c1 commit b2c3928

File tree

2 files changed

+71
-49
lines changed

2 files changed

+71
-49
lines changed

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

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Create a single database in Azure SQL Database using the Azure Reso
44
services: sql-database
55
ms.service: sql-database
66
ms.subservice: single-database
7-
ms.custom:
7+
ms.custom: subject-armqs
88
ms.devlang:
99
ms.topic: quickstart
1010
author: mumian
@@ -15,17 +15,39 @@ ms.date: 06/28/2019
1515

1616
# Quickstart: Create a single database in Azure SQL Database using the Azure Resource Manager template
1717

18-
Creating a [single database](sql-database-single-database.md) is the quickest and simplest deployment option for creating a database in Azure SQL Database. This quickstart shows you how to create a single database using the Azure Resource Manager template. For more information, see [Azure Resource Manager documentation](/azure/azure-resource-manager/).
18+
Creating a [single database](sql-database-single-database.md) is the quickest and simplest deployment option for creating a database in Azure SQL Database. This quickstart shows you how to create a single database using the Azure Resource Manager template.
19+
20+
[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)]
1921

2022
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/).
2123

24+
## Prerequisites
25+
26+
None
27+
2228
## Create a single database
2329

2430
A single database has a defined set of compute, memory, IO, and storage resources using one of two [purchasing models](sql-database-purchase-models.md). When you create a single database, you also define a [SQL Database server](sql-database-servers.md) to manage it and place it within [Azure resource group](../azure-resource-manager/management/overview.md) in a specified region.
2531

26-
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).
32+
### Review the template
33+
34+
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-sql-logical-server/).
35+
36+
:::code language="json" source="~/quickstart-templates/101-sql-logical-server/azuredeploy.json" range="1-163" highlight="63-132":::
37+
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).
2749

28-
[!code-json[create-azure-sql-database-server-and-database](~/resourcemanager-templates/SQLServerAndDatabase/azuredeploy.json)]
50+
### Deploy the template
2951

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

@@ -40,7 +62,7 @@ $adminPassword = Read-Host -Prompt "Enter the SQl server administrator password"
4062
$resourceGroupName = "${projectName}rg"
4163
4264
New-AzResourceGroup -Name $resourceGroupName -Location $location
43-
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
4466
4567
Read-Host -Prompt "Press [ENTER] to continue ..."
4668
```
@@ -59,15 +81,15 @@ az group create --location $location --name $resourceGroupName
5981
6082
az group deployment create -g $resourceGroupName --template-uri "D:\GitHub\azure-docs-json-samples\SQLServerAndDatabase\azuredeploy.json" `
6183
--parameters 'projectName=' + $projectName \
62-
'adminUser=' + $adminUser \
63-
'adminPassword=' + $adminPassword
84+
'administratorLogin=' + $adminUser \
85+
'administratorLoginPassword=' + $adminPassword
6486
6587
Read-Host -Prompt "Press [ENTER] to continue ..."
6688
```
6789

6890
* * *
6991

70-
## Query the database
92+
## Validate the deployment
7193

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

@@ -102,3 +124,4 @@ az group delete --name $resourceGroupName
102124
- [Connect and query using Azure Data Studio](https://docs.microsoft.com/sql/azure-data-studio/quickstart-sql-database?toc=/azure/sql-database/toc.json)
103125
- To create a single database using Azure CLI, see [Azure CLI samples](sql-database-cli-samples.md).
104126
- 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).

articles/sql-database/toc.yml

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
- name: Price and performance options
1919
items:
2020
- name: Purchasing models
21-
items:
22-
- name: Overview
21+
items:
22+
- name: Overview
2323
href: sql-database-purchase-models.md
2424
- name: vCore model
2525
items:
@@ -39,7 +39,7 @@
3939
items:
4040
- name: Overview
4141
href: sql-database-service-tiers-general-purpose-business-critical.md
42-
displayName: provisioned compute tier
42+
displayName: provisioned compute tier
4343
- name: General purpose / Standard
4444
href: sql-database-service-tier-general-purpose.md
4545
- name: Business critical / Premium
@@ -70,7 +70,7 @@
7070
- name: How-to guide
7171
href: sql-database-howto.md
7272

73-
- name: Security
73+
- name: Security
7474
items:
7575
- name: Security overview
7676
href: sql-database-security-overview.md
@@ -96,7 +96,7 @@
9696
items:
9797
- name: Transparent Data Encryption (TDE)
9898
items:
99-
- name: TDE with Azure SQL
99+
- name: TDE with Azure SQL
100100
href: transparent-data-encryption-azure-sql.md
101101
- name: TDE with Bring Your Own Key
102102
href: transparent-data-encryption-byok-azure-sql.md
@@ -114,7 +114,7 @@
114114
href: sql-database-always-encrypted.md
115115
- name: Use the Azure key vault
116116
href: sql-database-always-encrypted-azure-key-vault.md
117-
117+
118118
- name: Auditing
119119
items:
120120
- name: Get started with SQL Database auditing
@@ -141,7 +141,7 @@
141141
- name: IP-based firewall
142142
href: sql-database-firewall-configure.md
143143
- name: vNet firewall rules
144-
items:
144+
items:
145145
- name: vNet endpoints
146146
href: sql-database-vnet-service-endpoint-rule-overview.md
147147
- name: vNet endpoints - PowerShell
@@ -155,7 +155,7 @@
155155
href: sql-database-managed-instance-public-endpoint-securely.md
156156
- name: Managed instance auditing
157157
href: sql-database-managed-instance-auditing.md
158-
- name: Security baseline
158+
- name: Security baseline
159159
href: security-baseline.md
160160

161161
- name: Connect and query
@@ -229,13 +229,13 @@
229229
href: sql-database-long-term-retention.md
230230

231231
- name: Failover groups and geo-replication
232-
items:
232+
items:
233233
- name: Active geo-replication
234234
href: sql-database-active-geo-replication.md
235235
- name: Auto-failover groups
236236
href: sql-database-auto-failover-group.md
237237
- name: Configure security for replicas
238-
href: sql-database-geo-replication-security-config.md
238+
href: sql-database-geo-replication-security-config.md
239239
- name: Outage recovery guidance
240240
href: sql-database-disaster-recovery.md
241241
- name: Recovery drills
@@ -301,7 +301,7 @@
301301
- name: Read Scale-Out
302302
href: sql-database-read-scale-out.md
303303
- name: Database sharding
304-
items:
304+
items:
305305
- name: Database sharding
306306
href: sql-database-elastic-scale-introduction.md
307307
- name: Glossary
@@ -336,9 +336,9 @@
336336
href: sql-database-in-memory-oltp-migration.md
337337
- name: Transactional replication
338338
href: sql-database-managed-instance-transactional-replication.md
339-
- name: Temporal tables
339+
- name: Temporal tables
340340
href: sql-database-temporal-tables.md
341-
- name: Job automation
341+
- name: Job automation
342342
href: sql-database-job-automation-overview.md
343343

344344
- name: How to
@@ -384,7 +384,7 @@
384384
href: /azure/search/search-howto-connecting-azure-sql-database-to-azure-search-using-indexers?toc=/azure/sql-database/toc.json
385385
- name: Configure temporal retention policy
386386
href: sql-database-temporal-tables-retention-policy.md
387-
- name: Authenticate app
387+
- name: Authenticate app
388388
href: sql-database-client-id-keys.md
389389
- name: Batching for perf
390390
href: sql-database-use-batching-to-improve-performance.md
@@ -405,7 +405,7 @@
405405
- name: Java
406406
items:
407407
- name: Use Spring Data JDBC
408-
href: /java/azure/spring-framework/configure-spring-data-jdbc-with-azure-sql-server
408+
href: /java/azure/spring-framework/configure-spring-data-jdbc-with-azure-sql-server
409409
- name: Use Spring Data JPA
410410
href: /java/azure/spring-framework/configure-spring-data-jpa-with-azure-sql-server
411411
- name: Design data applications
@@ -415,7 +415,7 @@
415415
- name: Design for elastic pools
416416
href: sql-database-disaster-recovery-strategies-for-applications-with-elastic-pool.md
417417
- name: Design for app upgrades
418-
href: sql-database-manage-application-rolling-upgrade.md
418+
href: sql-database-manage-application-rolling-upgrade.md
419419
- name: Multi-tenant SaaS
420420
items:
421421
- name: SaaS design patterns
@@ -498,11 +498,11 @@
498498
- name: Quickstarts
499499
items:
500500
- name: Create
501-
items:
501+
items:
502502
- name: Using Azure portal
503503
href: sql-database-single-database-get-started.md
504-
- name: Using template
505-
displayName: Azure Resource Manager template, ARM
504+
- name: Using ARM template
505+
displayName: Resource Manager
506506
href: sql-database-single-database-get-started-template.md
507507
- name: Configure
508508
items:
@@ -516,7 +516,7 @@
516516
- name: Add to a failover group
517517
href: sql-database-single-database-failover-group-tutorial.md
518518
- name: Implement a geo-distributed database
519-
href: sql-database-implement-geo-distributed-database.md
519+
href: sql-database-implement-geo-distributed-database.md
520520
- name: Configure active geo-replication
521521
href: sql-database-active-geo-replication-portal.md
522522
- name: Set up Azure SQL Data Sync
@@ -534,9 +534,9 @@
534534
items:
535535

536536
- name: Single database resources
537-
items:
537+
items:
538538
- name: vCore resource limits
539-
href: sql-database-vcore-resource-limits-single-databases.md
539+
href: sql-database-vcore-resource-limits-single-databases.md
540540
- name: DTU resource limits
541541
href: sql-database-dtu-resource-limits-single-databases.md
542542
- name: Scale resources
@@ -545,23 +545,22 @@
545545
- name: Elastic pool resources
546546
items:
547547
- name: vCore resource limits
548-
href: sql-database-vcore-resource-limits-elastic-pools.md
548+
href: sql-database-vcore-resource-limits-elastic-pools.md
549549
- name: DTU resource limits
550-
href: sql-database-dtu-resource-limits-elastic-pools.md
550+
href: sql-database-dtu-resource-limits-elastic-pools.md
551551
- name: Scale resources
552552
href: sql-database-elastic-pool-scale.md
553553
- name: Manage pool resources
554554
href: sql-database-elastic-pool-manage.md
555555

556556
- name: Database server resources
557557
items:
558-
- name: Database resource limits
558+
- name: Database resource limits
559559
href: sql-database-resource-limits-database-server.md
560560
- name: Connectivity architecture
561-
href: sql-database-connectivity-architecture.md
562-
- name: Connectivity settings
561+
href: sql-database-connectivity-architecture.md
562+
- name: Connectivity settings
563563
href: sql-database-connectivity-settings.md
564-
565564
- name: Data sync
566565
items:
567566
- name: Data Sync Agent
@@ -575,7 +574,7 @@
575574
- name: Troubleshoot Data Sync
576575
href: sql-database-troubleshoot-data-sync.md
577576
- name: T-SQL differences
578-
href: sql-database-transact-sql-information.md
577+
href: sql-database-transact-sql-information.md
579578
- name: Features
580579
items:
581580
- name: SQL Data Sync
@@ -627,7 +626,7 @@
627626

628627

629628
- name: How to
630-
items:
629+
items:
631630
- name: Overview
632631
href: sql-database-howto-single-database.md
633632
- name: Migrate to a single/pooled database
@@ -649,7 +648,7 @@
649648
- name: Configure security for geo-replicas
650649
href: sql-database-geo-replication-security-config.md
651650
- name: Try in-memory features
652-
href: sql-database-in-memory-sample.md
651+
href: sql-database-in-memory-sample.md
653652
- name: Enable automatic tuning
654653
href: sql-database-automatic-tuning-enable.md
655654
- name: Enable e-mail notifications for automatic tuning
@@ -689,7 +688,7 @@
689688
- name: Use Dapper framework
690689
href: sql-database-elastic-scale-working-with-dapper.md
691690
- name: Query distributed data
692-
items:
691+
items:
693692
- name: Query vertically partitioned data
694693
href: sql-database-elastic-query-getting-started-vertical.md
695694
- name: Report across scaled-out data tier
@@ -720,7 +719,7 @@
720719
href: sql-database-managed-instance-index.yml
721720
items:
722721
- name: Overview
723-
items:
722+
items:
724723
- name: Managed instance
725724
href: sql-database-managed-instance.md
726725
- name: Instance pools
@@ -730,7 +729,7 @@
730729
- name: Quickstarts
731730
items:
732731
- name: Create
733-
items:
732+
items:
734733
- name: Using Azure portal
735734
href: sql-database-managed-instance-get-started.md
736735
- name: Using PowerShell
@@ -740,7 +739,7 @@
740739
- name: Configure
741740
items:
742741
- name: Service-aided subnet configuration
743-
href: sql-database-managed-instance-enabling-service-aided-subnet-configuration.md
742+
href: sql-database-managed-instance-enabling-service-aided-subnet-configuration.md
744743
- name: Public endpoint
745744
href: sql-database-managed-instance-public-endpoint-configure.md
746745
- name: Client VM connection
@@ -767,7 +766,7 @@
767766
- name: MI pub to MI sub
768767
href: replication-with-sql-database-managed-instance.md
769768
- name: MI pub, MI dist, SQL sub
770-
href: sql-database-managed-instance-configure-replication-tutorial.md
769+
href: sql-database-managed-instance-configure-replication-tutorial.md
771770

772771
- name: Concepts
773772
items:
@@ -776,9 +775,9 @@
776775
- name: Resource limits
777776
href: sql-database-managed-instance-resource-limits.md
778777
- name: Connectivity architecture
779-
href: sql-database-managed-instance-connectivity-architecture.md
778+
href: sql-database-managed-instance-connectivity-architecture.md
780779
- name: T-SQL differences
781-
href: sql-database-managed-instance-transact-sql-information.md
780+
href: sql-database-managed-instance-transact-sql-information.md
782781
- name: Features
783782
items:
784783
- name: Linked servers
@@ -793,7 +792,7 @@
793792
- name: Overview
794793
href: sql-database-howto-managed-instance.md
795794
- name: Migrate to Managed instance
796-
href: sql-database-managed-instance-migrate.md
795+
href: sql-database-managed-instance-migrate.md
797796
- name: Customize time zone
798797
href: sql-database-managed-instance-timezone.md
799798
- name: Configure connection types
@@ -802,7 +801,7 @@
802801
href: sql-database-managed-instance-migrate-tde-certificate.md
803802
- name: Restore to a point in time
804803
href: sql-database-managed-instance-point-in-time-restore.md
805-
- name: Determine size of managed instance subnet
804+
- name: Determine size of managed instance subnet
806805
href: sql-database-managed-instance-determine-size-vnet-subnet.md
807806
- name: Create new VNet and subnet for managed instance
808807
href: sql-database-managed-instance-create-vnet-subnet.md
@@ -891,7 +890,7 @@
891890
- name: Connectivity issues
892891
href: troubleshoot-connectivity-issues-microsoft-azure-sql-database.md
893892
- name: Problem resolution
894-
items:
893+
items:
895894
- name: Import/Export service hangs
896895
href: azure-sql-database-hangs-importing-exporting.md
897896
- name: Videos

0 commit comments

Comments
 (0)