Closed tjsullivan1 closed 2 years ago
This functionality has been released in v2.89.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.3 on linux_amd64
Affected Resource(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output
Debug contains secrets, so would prefer a private method if necessary for sharing.
Panic Output
Expected Behaviour
AKS cluster creates with Azure Policy Add-On Enabled
Actual Behaviour
This code works fine in Azure Commercial. In Azure Government, errors when running terraform apply with message: │ Error: The addon "azurepolicy" is not supported for a Kubernetes Cluster located in "AzureUSGovernmentCloud" │ │ with azurerm_kubernetes_cluster.k8s-policy, │ on main.tf line 24, in resource "azurerm_kubernetes_cluster" "k8s-policy": │ 24: resource "azurerm_kubernetes_cluster" "k8s-policy" { │
This is incorrect. The Policy Add-on went GA September 2020 (https://azure.microsoft.com/en-us/updates/ga-policy-addon-for-azure-kubernetes-service/), and is supported in Gov (az cli commands work for this).
Steps to Reproduce
terraform apply
Important Factoids
Running in Azure Government this fails.
References
This appears to be the PR that adjusted gov cloud behavior: https://github.com/hashicorp/terraform-provider-azurerm/pull/7233
0000