sparse-intern-71089
05/30/2020, 9:25 AMwhite-balloon-205
enabled: false
. That will override the defaults and avoid trying to configure addons that aren’t supported in the environment you are targeting.
The defaults here ultimately should be fixed in the upstream provider though as you say.fast-ice-1848
05/30/2020, 3:42 PMfast-ice-1848
05/30/2020, 3:42 PMaks = KubernetesCluster(
"aksCluster",
resource_group_name=resource_group.name,
kubernetes_version="1.18.1",
dns_prefix="dns",
linux_profile={"adminUsername": "aksuser", "ssh_key": {"keyData": SSHKEY}},
service_principal={"client_id": app.application_id, "client_secret": sppwd.value},
default_node_pool={
"name": "type1",
"node_count": 2,
"vm_size": "Standard_B2ms",
},
addon_profiles={
"azurePolicy" : {
"enabled" : False
}
},
fast-ice-1848
05/30/2020, 3:42 PMFile "./__main__.py", line 50, in <module>
"enabled" : False
TypeError: __init__() got an unexpected keyword argument 'addon_profiles'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
white-balloon-205
addon_profile
. See https://www.pulumi.com/docs/reference/pkg/azure/containerservice/kubernetescluster/#addon_profile_python.fast-ice-1848
05/30/2020, 5:07 PMs
and it worked like charmfast-ice-1848
05/30/2020, 5:13 PMgentle-diamond-70147
06/01/2020, 3:48 PM"azurepolicy"
as the addon name?