Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

201 sql #9979

Merged
merged 37 commits into from May 13, 2021
Merged

201 sql #9979

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
03026e2
Update metadata.json
StephenWeatherford Apr 13, 2021
097638c
Revert "Update metadata.json"
Apr 13, 2021
d0e5efd
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 18, 2021
abd0f3c
update .gitignore
bmoore-msft Apr 23, 2021
334ad05
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 23, 2021
e9d29af
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 23, 2021
b9fa4d6
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 23, 2021
e7b7ada
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 23, 2021
da5c5c4
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 24, 2021
1f9b292
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 24, 2021
43f3ddc
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 24, 2021
d3c9b65
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 27, 2021
5abc478
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 27, 2021
9df236e
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 28, 2021
30ba0d3
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft Apr 29, 2021
3afe815
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft Apr 29, 2021
9c5a26a
remove unicode chars
bmoore-msft Apr 29, 2021
68cf238
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 3, 2021
44b8c23
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 3, 2021
874b0dc
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 4, 2021
96b7652
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 4, 2021
e7d882e
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 5, 2021
45ceffd
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 5, 2021
fb4e0d9
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 5, 2021
dbfe8b4
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 5, 2021
ea40869
updates to allow for staging w/ sasToken parameter
bmoore-msft May 5, 2021
099e723
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 11, 2021
63c15e0
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 11, 2021
b10b8a6
workaround bug in jobCollections
bmoore-msft May 12, 2021
9bce136
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 12, 2021
d79bde3
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 12, 2021
40da1e7
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 12, 2021
6979a1c
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 12, 2021
08ab78f
Merge branch 'master' of https://github.com/bmoore-msft/azure-quickst…
bmoore-msft May 12, 2021
21e2ccc
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 12, 2021
670c815
Merge branch 'master' of https://github.com/Azure/azure-quickstart-te…
bmoore-msft May 13, 2021
4f4d845
duplicate sample
bmoore-msft May 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions 201-sql-database-transparent-encryption-create/README.md
@@ -0,0 +1,20 @@
# Provision a SQL Database with Transparent Data Encryption

![Azure Public Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/PublicLastTestDate.svg)
![Azure Public Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/PublicDeployment.svg)

![Azure US Gov Last Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/FairfaxLastTestDate.svg)
![Azure US Gov Last Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/FairfaxDeployment.svg)

![Best Practice Check](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/BestPracticeResult.svg)
![Cred Scan Check](https://azurequickstartsservice.blob.core.windows.net/badges/201-sql-database-transparent-encryption-create/CredScanResult.svg)

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-sql-database-transparent-encryption-create%2Fazuredeploy.json)
[![Deploy To Azure US Gov](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazuregov.svg?sanitize=true)](https://portal.azure.us/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-sql-database-transparent-encryption-create%2Fazuredeploy.json)
[![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-sql-database-transparent-encryption-create%2Fazuredeploy.json)

This sample creates a SQL Database at the "Basic" service level. The template can support other tiers of service, details for each service can be found here:

[SQL Database Pricing](https://azure.microsoft.com/pricing/details/sql-database/)

For more information about Transparent Data Encryption (TDE), see [Transparent Data Encryption with Azure SQL Database](https://msdn.microsoft.com/library/dn948096.aspx).
115 changes: 115 additions & 0 deletions 201-sql-database-transparent-encryption-create/azuredeploy.json
@@ -0,0 +1,115 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sqlAdministratorLogin": {
"type": "string",
"metadata": {
"description": "The administrator username of the SQL Server."
}
},
"sqlAdministratorLoginPassword": {
"type": "securestring",
"metadata": {
"description": "The administrator password of the SQL Server."
}
},
"transparentDataEncryption": {
"type": "string",
"allowedValues": [
"Enabled",
"Disabled"
],
"defaultValue": "Enabled",
"metadata": {
"description": "Enable or disable Transparent Data Encryption (TDE) for the database."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {
"sqlServerName": "[concat('sqlserver', uniqueString(subscription().id, resourceGroup().id))]",
"databaseName": "sample-db-with-tde",
"databaseEdition": "Basic",
"databaseCollation": "SQL_Latin1_General_CP1_CI_AS",
"databaseServiceObjectiveName": "Basic"
},
"resources": [
{
"name": "[variables('sqlServerName')]",
"type": "Microsoft.Sql/servers",
"apiVersion": "2020-02-02-preview",
"location": "[parameters('location')]",
"tags": {
"displayName": "SqlServer"
},
"properties": {
"administratorLogin": "[parameters('sqlAdministratorLogin')]",
"administratorLoginPassword": "[parameters('sqlAdministratorLoginPassword')]",
"version": "12.0"
},
"resources": [
{
"name": "[variables('databaseName')]",
"type": "databases",
"apiVersion": "2020-02-02-preview",
"location": "[parameters('location')]",
"tags": {
"displayName": "Database"
},
"properties": {
"edition": "[variables('databaseEdition')]",
"collation": "[variables('databaseCollation')]",
"requestedServiceObjectiveName": "[variables('databaseServiceObjectiveName')]"
},
"dependsOn": [
"[variables('sqlServerName')]"
],
"resources": [
{
"comments": "Transparent Data Encryption",
"name": "current",
"type": "transparentDataEncryption",
"apiVersion": "2017-03-01-preview",
"properties": {
"status": "[parameters('transparentDataEncryption')]"
},
"dependsOn": [
"[variables('databaseName')]"
]
}
]
},
{
"name": "AllowAllMicrosoftAzureIps",
"type": "firewallrules",
"apiVersion": "2020-02-02-preview",
"location": "[parameters('location')]",
"properties": {
"endIpAddress": "0.0.0.0",
"startIpAddress": "0.0.0.0"
},
"dependsOn": [
"[variables('sqlServerName')]"
]
}
]
}
],
"outputs": {
"sqlServerFqdn": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Sql/servers/', variables('sqlServerName'))).fullyQualifiedDomainName]"
},
"databaseName": {
"type": "string",
"value": "[variables('databaseName')]"
}
}
}
@@ -0,0 +1,15 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sqlAdministratorLogin": {
"value": "GEN-UNIQUE"
},
"sqlAdministratorLoginPassword": {
"value": "GEN-PASSWORD"
},
"transparentDataEncryption": {
"value": "Enabled"
}
}
}
9 changes: 9 additions & 0 deletions 201-sql-database-transparent-encryption-create/metadata.json
@@ -0,0 +1,9 @@
{
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"type": "QuickStart",
"itemDisplayName": "Provision a SQL Database with TDE",
"description": "This template provisions a SQL Server with firewall opened for Azure traffic and a SQL database with Transparent Data Encryption (TDE).",
"summary": "Provision a SQL Server with firewall and a SQL database with Transparent Data Encryption.",
"githubUsername": "slapointe",
"dateUpdated": "2021-04-28"
}