forked from Azure-Samples/azure-databricks-mlops-mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
databricks_and_storage.json
134 lines (134 loc) · 4.5 KB
/
databricks_and_storage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Resources location."
}
},
"dbWorkspaceName": {
"type": "string",
"defaultValue": "databricks-mlops-mlflow",
"metadata": {
"description": "The name of the Azure Databricks workspace to create."
}
},
"dbTier": {
"defaultValue": "standard",
"type": "string",
"allowedValues": [
"standard",
"premium"
],
"metadata": {
"description": "The pricing tier of Databricks workspace."
}
},
"stgAccountName": {
"type": "string",
"defaultValue": "[concat('storage', uniqueString(parameters('location'), resourceGroup().id))]",
"metadata": {
"description": "Storage account name."
}
},
"stgAccountType": {
"type": "string",
"defaultValue": "Standard_RAGRS",
"metadata": {
"description": "Storage account type."
}
},
"stgKind": {
"type": "string",
"defaultValue": "StorageV2",
"metadata": {
"description": "Storage account kind."
}
},
"stgAccessTier": {
"type": "string",
"defaultValue": "Cool",
"metadata": {
"description": "Storage account tier."
}
},
"stgIsHnsEnabled": {
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Enable ADLS Gen2."
}
},
"aiName": {
"type": "string",
"defaultValue": "[concat('ai', uniqueString(parameters('location'), resourceGroup().id))]",
"metadata": {
"description": "Application Insights name."
}
}
},
"variables": {
"managedResourceGroupName": "[concat('databricks-rg-', parameters('dbWorkspaceName'), '-', uniqueString(parameters('dbWorkspaceName'), resourceGroup().id))]",
"managedResourceGroupId": "[concat(subscription().id, '/resourceGroups/', variables('managedResourceGroupName'))]"
},
"resources": [
{
"type": "Microsoft.Databricks/workspaces",
"apiVersion": "2018-04-01",
"name": "[parameters('dbWorkspaceName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('dbTier')]"
},
"comments": "Please do not use an existing resource group for ManagedResourceGroupId.",
"properties": {
"ManagedResourceGroupId": "[variables('managedResourceGroupId')]",
"parameters": {}
},
"dependsOn": [],
"tags": {
"Purpose": "Demo",
"Project": "azure-databricks-mlops-mlflow"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"name": "[parameters('stgAccountName')]",
"location": "[parameters('location')]",
"properties": {
"accessTier": "[parameters('stgAccessTier')]",
"isHnsEnabled": "[parameters('stgIsHnsEnabled')]"
},
"dependsOn": [],
"sku": {
"name": "[parameters('stgAccountType')]"
},
"kind": "[parameters('stgKind')]",
"tags": {
"Purpose": "Demo",
"Project": "azure-databricks-mlops-mlflow"
}
},
{
"type": "Microsoft.Insights/components",
"apiVersion": "2020-02-02",
"name": "[parameters('aiName')]",
"location": "[parameters('location')]",
"kind": "other",
"tags": {
"Purpose": "Demo",
"Project": "azure-databricks-mlops-mlflow"
},
"properties": {
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "CustomDeployment"
}
}
],
"outputs": {}
}