Skip to content

Instantly share code, notes, and snippets.

@Walter-Shui
Last active December 12, 2017 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Walter-Shui/ed99195fe18a3d01a22c5fb2be57d740 to your computer and use it in GitHub Desktop.
Save Walter-Shui/ed99195fe18a3d01a22c5fb2be57d740 to your computer and use it in GitHub Desktop.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"applianceName": {
"type": "string"
},
"location": {
"defaultValue": "westus",
"type": "string"
},
"privateSubnetCidr": {
"defaultValue": "10.139.64.0/18",
"type": "string"
},
"publicSubnetCidr": {
"defaultValue": "10.139.0.0/18",
"type": "string"
},
"storageAccountName": {
"defaultValue": "[concat('dbstorage', uniqueString(parameters('applianceName'), resourceGroup().id, subscription().id))]",
"type": "string"
},
"storageAccountSkuName": {
"defaultValue": "Standard_GRS",
"type": "string"
},
"vnetCidr": {
"defaultValue": "10.139.0.0/16",
"type": "string"
}
},
"resources": [
{
"apiVersion": "2017-09-01-preview",
"kind": "Marketplace",
"location": "[parameters('location')]",
"name": "[parameters('applianceName')]",
"properties": {
"ManagedResourceGroupId": "[concat(subscription().id, '/resourceGroups/', variables('managedResourceGroupName'))]",
"Parameters": {
"displayUrl": {
"value": "[variables('displayUrl')]"
},
"kubernetesNatIp": {
"value": "[variables('azureRegionToKubernetesNatIp')[parameters('location')]]"
},
"loginUrl": {
"value": "[concat(variables('displayUrl'), '/aad/auth?hash=&Workspace=', resourceId('Microsoft.Databricks/workspaces', parameters('applianceName')), '&WorkspaceResourceGroupUri=', concat(subscription().id, '/resourceGroups/', variables('managedResourceGroupName')))]"
},
"privateSubnetCidr": {
"value": "[parameters('privateSubnetCidr')]"
},
"publicSubnetCidr": {
"value": "[parameters('publicSubnetCidr')]"
},
"storageAccountName": {
"value": "[parameters('storageAccountName')]"
},
"storageAccountSkuName": {
"value": "[parameters('storageAccountSkuName')]"
},
"vnetCidr": {
"value": "[parameters('vnetCidr')]"
}
},
"PublisherPackageId": "databricks.databricks-workspace-previewdatabricks-workspace.0.0.2"
},
"type": "Microsoft.Databricks/workspaces"
}
],
"variables": {
"azureRegionToDomain": {
"eastus2": "eastus2.azuredatabricks.net",
"eastus2euap": "eastus2.azuredatabricks.net",
"westeurope": "westeurope.azuredatabricks.net",
"westus": "westus.azuredatabricks.net"
},
"azureRegionToKubernetesNatIp": {
"eastus2": "23.101.152.95",
"eastus2euap": "23.101.152.95",
"westeurope": "23.100.0.135",
"westus": "40.83.178.242"
},
"displayUrl": "[concat('https://', variables('azureRegionToDomain')[parameters('location')])]",
"managedResourceGroupName": "[concat('databricks-rg-', parameters('applianceName'), '-', uniqueString(parameters('applianceName'), resourceGroup().id))]"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment