This message was deleted.
# azure
s
This message was deleted.
b
not sure if the ManagedCluster has the kubeconfig as a built-in property, what we did, is just created an output which gets you the azcli command:
Copy code
az_command = Output.all(aksResourceGroup.name, cluster.name).apply(
    lambda args: f"az aks get-credentials --resource-group {args[0]} --name {args[1]}"
)
🙌 1
also there's creds and kubeconfig outputs in this example: https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/aks/
🙌 1
w
Here's an example of exactly that... Https://github.com/martinjt/aks-otel-demo
🙌 1
h
awesome, yes it worked i was looking for this:
Copy code
custom_provider = Provider(
    "inflation_provider", kubeconfig=kube_config
)
which I missed in the official tutorial Peter mentioned, I also liked how you structured the app Martin thanks a lot