Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper generated terraform script not working #595

Open
yuanfei05 opened this issue Jun 21, 2023 · 3 comments
Open

Helper generated terraform script not working #595

yuanfei05 opened this issue Jun 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@yuanfei05
Copy link

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:

  1. Go to 'AKSC helper page', choose any configuration
  2. 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.

@Gordonby Gordonby added needs-triage 🔎 Requires a maintainer to review bug Something isn't working and removed needs-triage 🔎 Requires a maintainer to review labels Jun 22, 2023
@Gordonby
Copy link
Collaborator

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"

@Gordonby
Copy link
Collaborator

Logged the issue with the AzureRm provider.

hashicorp/terraform-provider-azurerm#22259

@OBILOTITI22
Copy link

I am having same issue and I am surprised that the issue still exists up till now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants