Skip to content

Commit

Permalink
ARM templates for JSS 13.0.0 has been added.
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-stenstorgaard committed Nov 28, 2019
1 parent cf49750 commit 5f0a879
Show file tree
Hide file tree
Showing 8 changed files with 638 additions and 0 deletions.
32 changes: 32 additions & 0 deletions JSS 13.0.0/XMSingle/README.md
@@ -0,0 +1,32 @@
# Sitecore JavaScript Services Server module for Sitecore XM0 Environment

This template deploys Sitecore JavaScript Services Server modules into a Sitecore XM0 (XMSingle) Environment (single all-in-one instance).

## Parameters for Sitecore JavaScript Services Server

The **deploymentId** parameter is filled in by the PowerShell script.

| Parameter | Description
--------------------------------------------|------------------------------------------------
| sqlServerLogin | The name of the administrator account for the newly created Azure SQL server.
| sqlServerPassword | The password for the administrator account for Azure SQL server.
| jssMsDeployPackageUrl | The HTTP(s) URL of a Sitecore JavaScript Services Server Web Deploy package.

## Deploying as part of Sitecore deployment

In order to configure Sitecore deployment parameters to include Sitecore JavaScript Services Server:

* Add the following snippet to the `modules` parameter:
```JSON
{
"name": "jss",
"templateLink": "<URL of the azuredeploy.json file of the corresponding topology *.azuredeploy.json>",
"parameters":
{
"jssMsDeployPackageUrl": "<URL of the WDP file for Sitecore JavaScript Services Server *.scwdp>"
}
}
```

* Configure Bootloader module according to [MODULES.md](../../MODULES.md).
> **Note**. The Bootloader module should be placed after the Sitecore JavaScript Services Server.
117 changes: 117 additions & 0 deletions JSS 13.0.0/XMSingle/azuredeploy.json
@@ -0,0 +1,117 @@
{
"$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')))]",
"singleWebAppNameTidy": "[toLower(trim(parameters('singleWebAppName')))]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"infrastructure": {
"sqlServerFqdn": null,
"authCertificateThumbprint": null
},

"deploymentId": null,
"location": null,
"sqlServerLogin": null,
"sqlServerPassword": null,
"coreSqlDatabaseName": null,
"masterSqlDatabaseName": null,
"singleWebAppName": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {
"jssMsDeployPackageUrl": null
}
},

"templateLinkBase": {
"type": "string",
"minLength": 1,
"defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]"
},

"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'))]"
},

"singleWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-single')]"
},

"jssMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').jssMsDeployPackageUrl]"
}
},

"resources": [
{
"name": "[concat(variables('singleWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('jssMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('singleWebAppNameTidy')]",
"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'), ';')]"
}
}
]
}
}
]
}
32 changes: 32 additions & 0 deletions JSS 13.0.0/XPSingle/README.md
@@ -0,0 +1,32 @@
# Sitecore JavaScript Services Server module for Sitecore XP0 Environment

This template deploys Sitecore JavaScript Services Server modules into a Sitecore XP0 (XPSingle) Environment (single all-in-one instance).

## Parameters for Sitecore JavaScript Services Server

The **deploymentId** parameter is filled in by the PowerShell script.

| Parameter | Description
--------------------------------------------|------------------------------------------------
| sqlServerLogin | The name of the administrator account for the newly created Azure SQL server.
| sqlServerPassword | The password for the administrator account for Azure SQL server.
| jssMsDeployPackageUrl | The HTTP(s) URL of a Sitecore JavaScript Services Server Web Deploy package.

## Deploying as part of Sitecore deployment

In order to configure Sitecore deployment parameters to include Sitecore JavaScript Services Server:

* Add the following snippet to the `modules` parameter:
```JSON
{
"name": "jss",
"templateLink": "<URL of the azuredeploy.json file of the corresponding topology *.azuredeploy.json>",
"parameters":
{
"jssMsDeployPackageUrl": "<URL of the WDP file for Sitecore JavaScript Services Server *.scwdp>"
}
}
```

* Configure Bootloader module according to [MODULES.md](../../MODULES.md).
> **Note**. The Bootloader module should be placed after the Sitecore JavaScript Services Server.
117 changes: 117 additions & 0 deletions JSS 13.0.0/XPSingle/azuredeploy.json
@@ -0,0 +1,117 @@
{
"$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')))]",
"singleWebAppNameTidy": "[toLower(trim(parameters('singleWebAppName')))]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"infrastructure": {
"sqlServerFqdn": null,
"authCertificateThumbprint": null
},

"deploymentId": null,
"location": null,
"sqlServerLogin": null,
"sqlServerPassword": null,
"coreSqlDatabaseName": null,
"masterSqlDatabaseName": null,
"singleWebAppName": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {
"jssMsDeployPackageUrl": null
}
},

"templateLinkBase": {
"type": "string",
"minLength": 1,
"defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]"
},

"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'))]"
},

"singleWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-single')]"
},

"jssMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').jssMsDeployPackageUrl]"
}
},

"resources": [
{
"name": "[concat(variables('singleWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('jssMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"Application Path": "[variables('singleWebAppNameTidy')]",
"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'), ';')]"
}
}
]
}
}
]
}
34 changes: 34 additions & 0 deletions JSS 13.0.0/xm/README.md
@@ -0,0 +1,34 @@
# Sitecore JavaScript Services Server module for Sitecore XM Environment

This template deploys Sitecore JavaScript Services Server modules into a Sitecore XM Environment.

## Parameters for Sitecore JavaScript Services Server

The **deploymentId** parameter is filled in by the PowerShell script.

| Parameter | Description
--------------------------------------------|------------------------------------------------
| sqlServerLogin | The name of the administrator account for the newly created Azure SQL server.
| sqlServerPassword | The password for the administrator account for Azure SQL server.
| jssMsDeployPackageUrl | The HTTP(s) URL of a Sitecore JavaScript Services Server Web Deploy package.
| jssCDMsDeployPackageUrl | The HTTP(s) URL of a Sitecore JavaScript Services Server Web Deploy CD package.

## Deploying as part of Sitecore deployment

In order to configure Sitecore deployment parameters to include Sitecore JavaScript Services Server:

* Add the following snippet to the `modules` parameter:
```JSON
{
"name": "jss",
"templateLink": "<URL of the azuredeploy.json file of the corresponding topology *.azuredeploy.json>",
"parameters":
{
"jssMsDeployPackageUrl": "<URL of the WDP file for Sitecore JavaScript Services Server *.scwdp>",
"jssCDMsDeployPackageUrl": "<URL of the CD WDP file for Sitecore JavaScript Services Server *.scwdp>"
}
}
```

* Configure Bootloader module according to [MODULES.md](../../MODULES.md).
> **Note**. The Bootloader module should be placed after the Sitecore JavaScript Services Server.

0 comments on commit 5f0a879

Please sign in to comment.