{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "WebAppName": { "type": "string", "maxLength": 24, "minLength": 3, "metadata": { "description": "App name for Bold BI Server. The name must be between 3 and 24 characters long, and can contain only numbers and lowercase letters." } }, "storageAccountName": { "type": "string", "maxLength": 24, "minLength": 3, "metadata": { "description": "Storage account name for Bold BI Server. The name must be between 3 to 24 characters long, and can contain only numbers and lowercase letters." }, "defaultValue": "boldbistorage" }, "storageAccountType": { "type": "string", "allowedValues": [ "Standard_LRS", "Standard_GRS", "Standard_RAGRS" ], "metadata": { "description": "Type of the storage account created" }, "defaultValue": "Standard_LRS" } }, "variables": { "WebAppSvcPlanWorkerSize": "0", "WebAppSvcPlanSKU": "Basic", "WebAppSvcPlanName": "BoldBIAppSvcPlan" }, "resources": [ { "name": "[variables('WebAppSvcPlanName')]", "type": "Microsoft.Web/serverfarms", "location": "[resourceGroup().location]", "apiVersion": "2014-06-01", "dependsOn": [], "tags": { "displayName": "AppSvcPlan" }, "properties": { "name": "[variables('WebAppSvcPlanName')]", "sku": "[variables('WebAppSvcPlanSKU')]", "workerSize": "[variables('WebAppSvcPlanWorkerSize')]" } }, { "name": "[parameters('WebAppName')]", "type": "Microsoft.Web/sites", "location": "[resourceGroup().location]", "apiVersion": "2015-08-01", "dependsOn": [ "[concat('Microsoft.Web/serverfarms/', variables('WebAppSvcPlanName'))]" ], "tags": { "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', variables('WebAppSvcPlanName'))]": "Resource", "displayName": "WebApp" }, "properties": { "name": "[parameters('WebAppName')]", "siteConfig": { "metadata": [ { "name": "CURRENT_STACK", "value": "dotnetcore" } ] }, "clientAffinityEnabled": "false", "serverFarmId": "[resourceId('Microsoft.Web/serverfarms/', variables('WebAppSvcPlanName'))]" }, "resources": [ { "apiVersion": "2015-08-01", "name": "web", "type": "config", "dependsOn": [ "[concat('Microsoft.Web/sites/', parameters('WebAppName'))]" ], "tags": { "displayName": "WebAppConfig" }, "properties": { "netFrameworkVersion": "v4.0", "use32BitWorkerProcess": true, "webSocketsEnabled": true, "alwaysOn": true, "remoteDebuggingEnabled": false, "virtualApplications": [ { "virtualPath": "/", "physicalPath": "site\\wwwroot\\idp\\web" }, { "virtualPath": "/api", "physicalPath": "site\\wwwroot\\idp\\api" }, { "virtualPath": "/ums", "physicalPath": "site\\wwwroot\\idp\\ums" }, { "virtualPath": "/bi", "physicalPath": "site\\wwwroot\\bi\\web" }, { "virtualPath": "/bi/api", "physicalPath": "site\\wwwroot\\bi\\api" }, { "virtualPath": "/bi/jobs", "physicalPath": "site\\wwwroot\\bi\\jobs" }, { "virtualPath": "/bi/designer", "physicalPath": "site\\wwwroot\\bi\\dataservice" } ], "http20Enabled": true } }, { "apiVersion": "2015-08-01", "name": "web", "type": "sourcecontrols", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('WebAppName'))]" ], "properties": { "RepoUrl": "https://github.com/boldbi/azure-arm-template.git", "branch": "v5.2.48", "IsManualIntegration": true } }, { "name": "appsettings", "type": "config", "apiVersion": "2015-08-01", "dependsOn": [ "[concat('Microsoft.Web/sites/', parameters('WebAppName'))]", "web", "[concat('Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]" ], "tags": { "displayName": "WebAppSettings" }, "properties": { "IdP:AzureBlobStorageAccountName": "[toLower(parameters('storageAccountName'))]", "IdP:AzureBlobServiceEndpoint": "[concat('https://',toLower(parameters('storageAccountName')), '.blob.core.windows.net/')]", "IdP:AzureBlobStorageAccessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', toLower(parameters('storageAccountName'))), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value]", "IdP:AzureBlobContainerName": "boldbicontainer", "IdP:AzureBlobConnectionType": "https", "IdP:AzureBlobStorageUri": "[concat('https://',toLower(parameters('storageAccountName')), '.blob.core.windows.net/')]", "IdP:StorageType": "AzureBlob", "StorageType": "AzureBlob", "IsAzureApplication": "true", "log4net.Config": "logs\\log4net.config", "WEBSITE_DYNAMIC_CACHE": "0", "WEBSITE_LOAD_USER_PROFILE": "1", "ApplicationUrl": "[concat('https://',parameters('WebAppName'), '.azurewebsites.net')]" } } ] }, { "name": "[toLower(parameters('storageAccountName'))]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "2015-06-15", "dependsOn": [], "tags": { "displayName": "storageaccount" }, "properties": { "accountType": "[parameters('storageAccountType')]" } } ] }