mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 03:06:57 -06:00
Azure, Artifactory and Xray templates. Major ARM template refactoring
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"$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')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user