Hi, when I run any of the AKS samples, e.g. <https...
# general
b
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
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
ah ok, that makes more sense, thank you
g
I still owe you a response to your email - will do that today, haven't forgotten. 🙂
b
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
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
ah thanks, I was putting the array inside the {}.
g
Just merged Mikhail's PR to fix the examples. https://github.com/pulumi/examples/pull/321
b
Thanks for doing this so quickly, I'll test it out today
The AKS changes works great now, thanks.
👍 1