{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "metadata": { "_generator": { "name": "bicep", "version": "0.9.1.41621", "templateHash": "2637152180661081755" } }, "parameters": { "clusterName": { "type": "string", "defaultValue": "aks101cluster", "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", "metadata": { "description": "Optional DNS prefix to use with hosted Kubernetes API server FQDN." } }, "osDiskSizeGB": { "type": "int", "defaultValue": 0, "maxValue": 1023, "minValue": 0, "metadata": { "description": "Disk size (in GB) 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." } }, "agentCount": { "type": "int", "defaultValue": 3, "maxValue": 50, "minValue": 1, "metadata": { "description": "The number of nodes for the cluster." } }, "agentVMSize": { "type": "string", "defaultValue": "standard_d2s_v3", "metadata": { "description": "The size of the Virtual Machine." } }, "linuxAdminUsername": { "type": "string", "metadata": { "description": "User name for the Linux Virtual Machines." } }, "sshRSAPublicKey": { "type": "string", "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'" } } }, "resources": [ { "type": "Microsoft.ContainerService/managedClusters", "apiVersion": "2022-05-02-preview", "name": "[parameters('clusterName')]", "location": "[parameters('location')]", "identity": { "type": "SystemAssigned" }, "properties": { "dnsPrefix": "[parameters('dnsPrefix')]", "agentPoolProfiles": [ { "name": "agentpool", "osDiskSizeGB": "[parameters('osDiskSizeGB')]", "count": "[parameters('agentCount')]", "vmSize": "[parameters('agentVMSize')]", "osType": "Linux", "mode": "System" } ], "linuxProfile": { "adminUsername": "[parameters('linuxAdminUsername')]", "ssh": { "publicKeys": [ { "keyData": "[parameters('sshRSAPublicKey')]" } ] } } } } ], "outputs": { "controlPlaneFQDN": { "type": "string", "value": "[reference(resourceId('Microsoft.ContainerService/managedClusters', parameters('clusterName'))).fqdn]" } } }