forked from microsoft/AI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazureML.json
115 lines (115 loc) · 3.53 KB
/
azureML.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"azureMLName": {
"type": "string"
},
"location": {
"type": "string"
},
"uniqueKey": {
"type": "string"
}
},
"variables": {
"azureMLSku": "basic",
"appInsights": "[resourceId('Microsoft.Insights/components', variables('appInsightsName'))]",
"appInsightsName": "[concat('appInsights-', parameters('uniqueKey'))]",
"keyVault": "[resourceId('Microsoft.KeyVault/vaults', variables('keyVaultName'))]",
"keyVaultName": "[concat('keyVault-', parameters('uniqueKey'))]",
"dataAccount": "[resourceId('Microsoft.Storage/storageAccounts', variables('dataAccountName'))]",
"dataAccountName": "[concat('storage', parameters('uniqueKey'))]",
"dataAccountType": "Standard_LRS"
},
"resources": [
{
"comments": "Application Insights for AzureML Workspace",
"type": "Microsoft.Insights/components",
"apiVersion": "2020-02-02-preview",
"name": "[variables('appInsightsName')]",
"location": "[if(or(equals(parameters('location'),'eastus2'), equals(parameters('location'),'westcentralus')),'southcentralus',parameters('location'))]",
"kind": "web",
"properties": {
"Application_Type": "web"
}
},
{
"comments": "KeyVault for AzureML Workspace",
"type": "Microsoft.KeyVault/vaults",
"apiVersion": "2019-09-01",
"name": "[variables('keyVaultName')]",
"location": "[parameters('location')]",
"properties": {
"accessPolicies": [],
"enableSoftDelete": true,
"softDeleteRetentionInDays": 30,
"sku": {
"family": "A",
"name": "standard"
},
"tenantId": "[subscription().tenantId]"
}
},
{
"comments": "Storage account for AzureML Workspace",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"name": "[variables('dataAccountName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[variables('dataAccountType')]"
},
"kind": "StorageV2",
"properties": {
"encryption": {
"keySource": "Microsoft.Storage",
"services": {
"blob": {
"enabled": true
},
"file": {
"enabled": true
}
}
},
"supportsHttpsTrafficOnly": true
}
},
{
"comments": "AzureML Workspace",
"type": "Microsoft.MachineLearningServices/workspaces",
"apiVersion": "2020-06-01",
"name": "[parameters('azureMLName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[variables('azureMLSku')]",
"tier": "[variables('azureMLSku')]"
},
"dependsOn": [
"[variables('appInsights')]",
"[variables('dataAccount')]",
"[variables('keyVault')]"
],
"properties": {
"applicationInsights": "[variables('appInsights')]",
"friendlyName": "[parameters('azureMLName')]",
"keyVault": "[variables('keyVault')]",
"storageAccount": "[variables('dataAccount')]"
},
"identity": {
"type": "SystemAssigned"
}
}
],
"outputs": {
"resourceId": {
"type": "string",
"value": "[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('azureMLName'))]"
},
"keyVaultName": {
"type": "string",
"value": "[variables('keyVaultName')]"
}
}
}