AKS-Construction
AKS-Construction copied to clipboard
Helper generated terraform script not working
Describe the bug When using terraform scripts. it always says
requesting validating: resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidDeployment" Message="Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied."
To Reproduce Steps to reproduce the behavior:
- Go to 'AKSC helper page', choose any configuration
- Use generated terraform script
Expected behavior no error
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Reproduced.
2023-06-23T08:54:00.020Z [DEBUG] provider.terraform-provider-azurerm_v3.62.0_x5: AzureRM Response for https://management.azure.com/subscriptions/REDACTED/resourcegroups/az-k8s-dr3x-rg/providers/Microsoft.Resources/deployments/AKS-C/validate?api-version=2020-06-01:
HTTP/2.0 400 Bad Request
Content-Length: 177
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Fri, 23 Jun 2023 08:53:59 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: 49692083-00fa-e9b8-73f4-0bc8a6365144
X-Ms-Failure-Cause: gateway
X-Ms-Ratelimit-Remaining-Subscription-Writes: 1199
X-Ms-Request-Id: cdd64c0b-3cec-4c12-b2e3-ae74d810da92
X-Ms-Routing-Request-Id: WESTEUROPE:20230623T085400Z:cdd64c0b-3cec-4c12-b2e3-ae74d810da92
{"error":{"code":"InvalidDeployment","message":"Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied."}}: timestamp=2023-06-23T08:54:00.019Z
2023-06-23T08:54:00.020Z [ERROR] provider.terraform-provider-azurerm_v3.62.0_x5: Response contains error diagnostic: @module=sdk.proto tf_resource_type=azurerm_resource_group_template_deployment @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_detail= diagnostic_severity=ERROR diagnostic_summary="validating Template Deployment "AKS-C" (Resource Group "az-k8s-dr3x-rg"): requesting validating: resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidDeployment" Message="Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied."" tf_proto_version=5.3 tf_provider_addr=provider tf_req_id=a08ed4ce-cfa2-2a46-134f-f73a622d8f84 tf_rpc=ApplyResourceChange timestamp=2023-06-23T08:54:00.020Z
2023-06-23T08:54:00.179Z [ERROR] vertex "azurerm_resource_group_template_deployment.aksc_deploy" error: validating Template Deployment "AKS-C" (Resource Group "az-k8s-dr3x-rg"): requesting validating: resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidDeployment" Message="Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied."
╷
│ Error: validating Template Deployment "AKS-C" (Resource Group "az-k8s-dr3x-rg"): requesting validating: resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidDeployment" Message="Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied."
│
│ with azurerm_resource_group_template_deployment.aksc_deploy,
│ on main.tf line 18, in resource "azurerm_resource_group_template_deployment" "aksc_deploy":
│ 18: resource "azurerm_resource_group_template_deployment" "aksc_deploy" {
│
╵
2023-06-23T08:54:00.445Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
Logged the issue with the AzureRm provider.
https://github.com/hashicorp/terraform-provider-azurerm/issues/22259
I am having same issue and I am surprised that the issue still exists up till now.