{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.1", "parameters": { "clusterName": { "type": "string", "metadata": { "description": "The name of the Managed Cluster resource." } }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "The location of the Managed Cluster resource." } }, "dnsPrefix": { "type": "string", "defaultValue": "-dns", "metadata": { "description": "Optional DNS prefix to use with hosted Kubernetes API server FQDN." } }, "adminUsername": { "type": "string", "defaultValue":"hal", "metadata": { "description": "User name for the Linux Virtual Machines." } }, "adminPublicKey": { "type": "securestring", "metadata": { "description": "Configure all linux machines with the SSH RSA public key string. Your key should include three parts, for example 'ssh-rsa AAAAB...snip...UcyupgH azureuser@linuxvm'" } }, "agentPoolProfilesOriginal": { "type": "array", "metadata": { "description": "Original configuration of agent pools when creating cluster. Based on https://docs.microsoft.com/en-gb/azure/aks/use-multiple-node-pools#manage-node-pools-using-a-resource-manager-template, updating their configuration must be done in a separate template. So DO NOT update this parameter anymore, update parameters in aks_agentpools.json instead" } }, "enableRBAC": { "type": "bool", "defaultValue":true }, "skuName": { "type": "string", "defaultValue": "Basic" }, "skuTier": { "type": "string", "defaultValue": "Free" }, "lawID": { "type": "string", "metadata": { "description": "Log Analytics Workspace ID for this cluster" } } }, "resources": [ { "type": "Microsoft.ContainerService/managedClusters", "apiVersion": "2021-02-01", "name": "[parameters('clusterName')]", "location": "[parameters('location')]", "sku": { "name": "[parameters('skuName')]", "tier": "[parameters('skuTier')]" }, "properties": { "dnsPrefix": "[concat(parameters('clusterName'), parameters('dnsPrefix'))]", "agentPoolProfiles":"[parameters('agentPoolProfilesOriginal')]", "linuxProfile": { "adminUsername": "[parameters('adminUsername')]", "ssh": { "publicKeys": [ { "keyData": "[parameters('adminPublicKey')]" } ] } }, "enableRBAC": "[parameters('enableRBAC')]", "addonProfiles": { "omsAgent": { "enabled": true, "config": { "logAnalyticsWorkspaceResourceID": "[parameters('lawID')]" } } } }, "identity": { "type": "SystemAssigned" } } ], "outputs": { "controlPlaneFQDN": { "type": "string", "value": "[reference(parameters('clusterName')).fqdn]" } } }