You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The azurerm_kubernetes_cluster should be created, or a "normal" handled error should have occured.
Actual Behavior
When trying to create the azurerm_kubernetes_cluster, a terraform crash occurs.
I first tried to create the cluster without addon_profile {} ; when not specifying an addon_profile, there is no crash, but the following error occurs :
Error: creating Managed Kubernetes Cluster "mycluster-aks" (Resource Group "k8s-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="OperationNotAllowed" Message="Addon 'azurepolicy' is not supported in this cloud environment."
on k8s17-cnn2-sandbox-rg.tf line 15, in resource "azurerm_kubernetes_cluster" "k8s-cluster":
15: resource "azurerm_kubernetes_cluster" "k8s-cluster" {
Same thing happens when explicitly disabling all addons :
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Jul 11, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.24
Affected Resource(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output
https://gist.github.com/masterphenix/33f95885e6cdd3a2126b7b1442e250e3
Panic Output
https://gist.github.com/masterphenix/8cd3a9bd47f053aaf5fe6e90c946ee37
Expected Behavior
The azurerm_kubernetes_cluster should be created, or a "normal" handled error should have occured.
Actual Behavior
When trying to create the azurerm_kubernetes_cluster, a terraform crash occurs.
I first tried to create the cluster without
addon_profile {}
; when not specifying an addon_profile, there is no crash, but the following error occurs :Same thing happens when explicitly disabling all addons :
So it really seems that the crash is due to the empty
addon_profile
block.Steps to Reproduce
terraform apply
Important Factoids
Running in Azure China.
References
The text was updated successfully, but these errors were encountered: