-
Notifications
You must be signed in to change notification settings - Fork 771
/
Copy pathmain.bicep
59 lines (51 loc) · 1.49 KB
/
main.bicep
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
// mandatory params
param dnsPrefix string
param linuxAdminUsername string
param sshRSAPublicKey string
@secure()
param servcePrincipalClientId string
@secure()
param servicePrincipalClientSecret string
// optional params
param clusterName string = 'aks101cluster'
param location string = resourceGroup().location
@minValue(0)
@maxValue(1023)
param osDiskSizeGB int = 0
@minValue(1)
@maxValue(50)
param agentCount int = 3
param agentVMSize string = 'Standard_DS2_v2'
// osType was a defaultValue with only one allowedValue, which seems strange?, could be a good TTK test
resource aks 'Microsoft.ContainerService/managedClusters@2020-03-01' = {
name: clusterName
location: location
properties: {
dnsPrefix: dnsPrefix
agentPoolProfiles: [
{
name: 'agentpool'
osDiskSizeGB: osDiskSizeGB
vmSize: agentVMSize
osType: 'Linux'
storageProfile: 'ManagedDisks'
}
]
linuxProfile: {
adminUsername: linuxAdminUsername
ssh: {
publicKeys: [
{
keyData: sshRSAPublicKey
}
]
}
}
servicePrincipalProfile: {
clientId: servcePrincipalClientId
secret: servicePrincipalClientSecret
}
}
}
// fyi - dot property access (aks.fqdn) has not been spec'd
//output controlPlaneFQDN string = aks.properties.fqdn