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/terraform-plugin-go@v0.14.3/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"
Expected Behaviour
Deployment success. This used to work. I've tried rolling back to 3.6 and it still fails. The only resource using 2020-06-01 is networking related....
They're conditional, and not being deployed
The API versions are the latest available.
Actual Behaviour
Validation error message.
Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.2
AzureRM Provider Version
3.62
Affected Resource(s)/Data Source(s)
azurerm
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deployment success. This used to work. I've tried rolling back to 3.6 and it still fails. The only resource using 2020-06-01 is networking related....
Actual Behaviour
Validation error message. Support for symbolic name resources requires a minimum API version of '2020-09-01', but API version '2020-06-01' was supplied.
Steps to Reproduce
terraform fmt terraform init terraform validate terraform plan -out main.tfplan terraform apply main.tfplan terraform output
Important Factoids
No response
References
No response