{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "workspaceName": { "type": "string", "defaultValue": "[concat('ml-', uniqueString(resourceGroup().id))]", "metadata": { "description": "Specifies the name of the Azure Machine Learning workspace." } }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Specifies the location for all resources." } }, "storageAccountName": { "type": "string", "defaultValue": "[concat('sa', uniqueString(resourceGroup().id))]", "metadata": { "description": "The name for the storage account to created and associated with the workspace." } }, "keyVaultName": { "type": "string", "defaultValue": "[concat('kv-', uniqueString(resourceGroup().id))]", "metadata": { "description": "The name for the key vault to created and associated with the workspace." } }, "applicationInsightsName": { "type": "string", "defaultValue": "[concat('ai-', uniqueString(resourceGroup().id))]", "metadata": { "description": "The name for the application insights to created and associated with the workspace." } } }, "resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "2019-06-01", "name": "[parameters('storageAccountName')]", "location": "[parameters('location')]", "sku": { "name": "Standard_LRS" }, "kind": "StorageV2", "properties": { "encryption": { "services": { "blob": { "enabled": true }, "file": { "enabled": true } }, "keySource": "Microsoft.Storage" }, "supportsHttpsTrafficOnly": true } }, { "type": "Microsoft.KeyVault/vaults", "apiVersion": "2019-09-01", "name": "[parameters('keyVaultName')]", "location": "[parameters('location')]", "properties": { "tenantId": "[subscription().tenantId]", "sku": { "name": "standard", "family": "A" }, "enableSoftDelete": false, "accessPolicies": [] } }, { "type": "Microsoft.Insights/components", "apiVersion": "2020-02-02-preview", "name": "[parameters('applicationInsightsName')]", "location": "[parameters('location')]", "kind": "web", "properties": { "Application_Type": "web" } }, { "type": "Microsoft.MachineLearningServices/workspaces", "apiVersion": "2020-08-01", "name": "[parameters('workspaceName')]", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Insights/components', parameters('applicationInsightsName'))]", "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]" ], "identity": { "type": "systemAssigned" }, "properties": { "friendlyName": "[parameters('workspaceName')]", "storageAccount": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]", "keyVault": "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]", "applicationInsights": "[resourceId('Microsoft.Insights/components', parameters('applicationInsightsName'))]" } } ], "outputs": { "workspaceName": { "type": "string", "value": "[parameters('workspaceName')]" }, "storageAccountName": { "type": "string", "value": "[parameters('storageAccountName')]" }, "keyVaultName": { "type": "string", "value": "[parameters('keyVaultName')]" }, "applicationInsightsName": { "type": "string", "value": "[parameters('applicationInsightsName')]" }, "location": { "type": "string", "value": "[parameters('location')]" } } }