{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "aksClusterName": { "type": "string", "defaultValue": "aks101cluster-vmss", "metadata": { "description": "The name of the Managed Cluster resource." } }, "location": { "defaultValue": "[resourceGroup().location]", "type": "string", "metadata": { "description": "The location of AKS resource." } }, "dnsPrefix": { "type": "string", "metadata": { "description": "Optional DNS prefix to use with hosted Kubernetes API server FQDN." } }, "osDiskSizeGB": { "type": "int", "defaultValue": 0, "metadata": { "description": "Disk size (in GiB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize." }, "minValue": 0, "maxValue": 1023 }, "agentCount": { "type": "int", "defaultValue": 3, "metadata": { "description": "The number of nodes for the cluster. 1 Node is enough for Dev/Test and minimum 3 nodes, is recommended for Production" }, "minValue": 1, "maxValue": 100 }, "agentVMSize": { "type": "string", "defaultValue": "Standard_DS2_v2", "metadata": { "description": "The size of the Virtual Machine." } }, "osType": { "type": "string", "defaultValue": "Linux", "allowedValues": [ "Linux", "Windows" ], "metadata": { "description": "The type of operating system." } }, "identityId": { "type": "string" } }, "resources": [ { "apiVersion": "2020-09-01", "type": "Microsoft.ContainerService/managedClusters", "location": "[parameters('location')]", "name": "[parameters('aksClusterName')]", "tags": { "displayname": "AKS Cluster" }, "identity": { "type": "UserAssigned", "userAssignedIdentities": { "[parameters('identityId')]": {} } }, "properties": { "enableRBAC": true, "dnsPrefix": "[parameters('dnsPrefix')]", "agentPoolProfiles": [ { "name": "agentpool", "osDiskSizeGB": "[parameters('osDiskSizeGB')]", "count": "[parameters('agentCount')]", "vmSize": "[parameters('agentVMSize')]", "osType": "[parameters('osType')]", "storageProfile": "ManagedDisks", "type": "VirtualMachineScaleSets", "mode": "System" } ] } } ], "outputs": { "controlPlaneFQDN": { "type": "string", "value": "[reference(resourceId('Microsoft.ContainerService/managedClusters/', parameters('aksClusterName'))).fqdn]" } } }