Files
JFrog-Cloud-Installers/JFrogContainerRegistry/AzureResourceManager/MP_submission_6/nested/azureDBDeploy.json
2020-05-21 13:14:58 -07:00

97 lines
2.6 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"db_user": {
"type": "string",
"defaultValue": "artifactory",
"minLength": 1
},
"db_password": {
"type": "securestring"
},
"db_server": {
"type": "string",
"defaultValue": "artmssqlsrv",
"minLength": 1
},
"db_name": {
"type": "string",
"defaultValue": "artdb",
"minLength": 1
},
"db_location": {
"type": "string",
"defaultValue": ""
},
"db_edition": {
"type": "string",
"allowedValues": [
"Basic",
"Standard",
"Premium"
]
}
},
"variables": {
"rtdbCollation": "Latin1_General_100_CS_AS",
"db_location": "[parameters('db_location')]"
},
"resources": [
{
"name": "[parameters('db_server')]",
"type": "Microsoft.Sql/servers",
"kind": "v12.0",
"location": "[variables('db_location')]",
"apiVersion": "2019-06-01-preview",
"tags": {
"displayName": "artifactoryDB"
},
"properties": {
"administratorLogin": "[parameters('db_user')]",
"administratorLoginPassword": "[parameters('db_password')]",
"version": "12.0"
},
"resources": [
{
"name": "[uniqueString(parameters('db_server'), 'AllowAllWindowsAzureIps' )]",
"type": "firewallrules",
"location": "[variables('db_location')]",
"apiVersion": "2019-06-01-preview",
"dependsOn": [
"[concat('Microsoft.Sql/servers/', parameters('db_server'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"name": "[parameters('db_name')]",
"type": "databases",
"kind": "v12.0,user",
"location": "[variables('db_location')]",
"apiVersion": "2019-06-01-preview",
"dependsOn": [
"[parameters('db_server')]"
],
"tags": {
"displayName": "artifactoryDB"
},
"properties": {
"edition": "[parameters('db_edition')]",
"maxSizeBytes": "1073741824",
"collation": "[variables('rtdbCollation')]"
}
}
]
}
],
"outputs": {
"jdbcConnString": {
"type": "string",
"value": "[concat('jdbc:sqlserver://', reference(concat('Microsoft.Sql/servers/', parameters('db_server'))).fullyQualifiedDomainName, ':1433')]"
}
}
}