$ terraform init
$ terraform plan
$ terraform apply
$ cat output.json
// you can see any variable have been replaced with Vars
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "edwin-k8s",
"vmSize": "Standard_D2_v2"
},
"agentPoolProfiles": [
{
"name": "agentpool1",
"count": 3,
"vmSize": "Standard_D2_v2",
"availabilityProfile": "AvailabilitySet"
}
],
"linuxProfile": {
"adminUsername": "azureuser",
"ssh": {
"publicKeys": [
{
"keyData": "key_data"
}
]
}
},
"servicePrincipalProfile": {
"clientId": "client_id",
"secret": "secret"
}
}
}