Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
224 lines (211 sloc) 8.58 KB
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"webApiVersion": "2016-08-01",
"resourcesApiVersion": "2016-09-01",
"sqlServerFqdnTidy": "[toLower(trim(parameters('sqlServerFqdn')))]",
"coreSqlDatabaseNameTidy": "[toLower(trim(parameters('coreSqlDatabaseName')))]",
"masterSqlDatabaseNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]",
"cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]",
"cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]",
"searchProvider": "[if(empty(parameters('solrConnectionString')), 'Azure', 'Solr')]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"infrastructure": {
"sqlServerFqdn": null
},
"deploymentId": null,
"location": null,
"sqlServerLogin": null,
"sqlServerPassword": null,
"coreSqlDatabaseName": null,
"masterSqlDatabaseName": null,
"cdWebAppName": null,
"cmWebAppName": null,
"solrConnectionString": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {
"cdSxaMsDeployPackageUrl": null,
"cmSxaMsDeployPackageUrl": null,
"speMsDeployPackageUrl": null,
"solrSupportSxaMsDeployPackageUrl": null,
"templateLinkAccessToken" : null
}
},
"templateLinkBase": {
"type": "string",
"minLength": 1,
"defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]"
},
"templateLinkAccessToken": {
"type": "securestring",
"defaultValue": "[parameters('extension').templateLinkAccessToken]"
},
"deploymentId": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]"
},
"location": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').location, resourceGroup().location)]"
},
"sqlServerFqdn": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').infrastructure.sqlServerFqdn, concat(parameters('deploymentId'), '-sql.database.windows.net'))]"
},
"sqlServerLogin": {
"type": "string",
"minLength": 1,
"defaultValue": "[parameters('standard').sqlServerLogin]"
},
"sqlServerPassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[parameters('standard').sqlServerPassword]"
},
"coreSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').coreSqlDatabaseName, concat(parameters('deploymentId'), '-core-db'))]"
},
"masterSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').masterSqlDatabaseName, concat(parameters('deploymentId'), '-master-db'))]"
},
"cdWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').cdWebAppName, concat(parameters('deploymentId'), '-cd'))]"
},
"cmWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').cmWebAppName, concat(parameters('deploymentId'), '-cm'))]"
},
"speMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').speMsDeployPackageUrl]"
},
"cdSxaMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').cdSxaMsDeployPackageUrl]"
},
"cmSxaMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').cmSxaMsDeployPackageUrl]"
},
"solrConnectionString": {
"type": "securestring",
"defaultValue": "[parameters('standard').solrConnectionString]"
},
"solrSupportSxaMsDeployPackageUrl": {
"type": "securestring",
"defaultValue": "[parameters('extension').solrSupportSxaMsDeployPackageUrl]"
}
},
"resources": [
{
"name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('speMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
},
{
"packageUri": "[parameters('cmSxaMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
}
]
}
},
{
"name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('cdSxaMsDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]"
}
}
]
}
},
{
"apiVersion": "[variables('resourcesApiVersion')]",
"name": "[concat(parameters('deploymentId'), '-sxa-search-solr')]",
"condition": "[not(equals(variables('searchProvider'), 'Azure'))]",
"type": "Microsoft.Resources/deployments",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/azuredeploy-solr.json'), parameters('templateLinkAccessToken'))]"
},
"parameters": {
"deploymentId": {
"value": "[parameters('deploymentId')]"
},
"location": {
"value": "[parameters('location')]"
},
"sqlServerLogin": {
"value": "[parameters('sqlServerLogin')]"
},
"sqlServerPassword": {
"value": "[parameters('sqlServerPassword')]"
},
"coreSqlDatabaseName": {
"value": "[parameters('coreSqlDatabaseName')]"
},
"masterSqlDatabaseName": {
"value": "[parameters('sqlServerFqdn')]"
},
"cdWebAppName": {
"value": "[parameters('cdWebAppName')]"
},
"cmWebAppName": {
"value": "[parameters('cmWebAppName')]"
},
"solrSupportSxaMsDeployPackageUrl": {
"value": "[parameters('solrSupportSxaMsDeployPackageUrl')]"
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites/extensions', variables('cmWebAppNameTidy'),'MSDeploy')]"
]
}
]
}
You can’t perform that action at this time.