https://pulumi.com logo
#general
Title
# general
b

billions-lock-80282

06/24/2019, 3:17 PM
Hi, when I run any of the AKS samples, e.g. https://github.com/pulumi/examples/tree/master/azure-ts-aks-helm or the example in the api docs, I always get the same error around saying that the agentPoolProfile does not exist in type 'KubernetesClusterArgs'
g

gentle-diamond-70147

06/24/2019, 3:20 PM
Unfortunately that example is outdated and needs to be updated to the latest azure sdk.
If you look at https://pulumi.io/reference/pkg/nodejs/pulumi/azure/containerservice/#KubernetesClusterArgs-agentPoolProfiles, you'll see it now expects an array instead of a single object.
b

billions-lock-80282

06/24/2019, 3:21 PM
ah ok, that makes more sense, thank you
g

gentle-diamond-70147

06/24/2019, 3:23 PM
I still owe you a response to your email - will do that today, haven't forgotten. 🙂
b

billions-lock-80282

06/24/2019, 3:24 PM
no problem 🙂
so how should this look then:
Copy code
agentPoolProfiles: {
        name: "aksagentpool",
        count: config.nodeCount,
        vmSize: config.nodeSize
    },
do you have any up to date samples?
g

gentle-diamond-70147

06/24/2019, 3:30 PM
looking...
Copy code
agentPoolProfiles: [{
        name: "aksagentpool",
        count: config.nodeCount,
        vmSize: config.nodeSize,
    }],
it needs to be an array
I'll update the examples today.
b

billions-lock-80282

06/24/2019, 3:34 PM
ah thanks, I was putting the array inside the {}.
g

gentle-diamond-70147

06/24/2019, 3:43 PM
Just merged Mikhail's PR to fix the examples. https://github.com/pulumi/examples/pull/321
b

billions-lock-80282

06/25/2019, 8:56 AM
Thanks for doing this so quickly, I'll test it out today
The AKS changes works great now, thanks.
👍 1