hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.53k stars 9.52k forks source link

Terraform Crash Azure #24226

Closed lhlima closed 4 years ago

lhlima commented 4 years ago

Terraform Version

Terraform v0.12.21

Step:

Terraform plan

Terraform Configuration Files

`provider "azurerm" {
  version         = "1.44.0"
  features {}
}

resource "azurerm_resource_group" "resource_group" {
  location = "Central US"
  name     = "test"
}

resource "azurerm_app_service_plan" "resource_plan" {
  name                = "test"
  location            = azurerm_resource_group.resource_group.location
  resource_group_name = azurerm_resource_group.resource_group.name
  sku {
    size = "S1"
    tier = "Standard"
  }
}

resource "azurerm_app_service" "app_service" {
  name                = "test"
  app_service_plan_id = azurerm_app_service_plan.resource_plan.id
  location            = azurerm_resource_group.resource_group.location
  resource_group_name = azurerm_resource_group.resource_group.name
  site_config {
    php_version = "7.2"
    scm_type    = "LocalGit"
  }
}`

Crash Output

2020/02/26 16:15:42 [INFO] Terraform version: 0.12.21
2020/02/26 16:15:42 [INFO] Go runtime version: go1.12.13 2020/02/26 16:15:42 [INFO] CLI args: []string{"C:\Program Files\terraform\terraform.exe", "plan"} 2020/02/26 16:15:42 [DEBUG] Attempting to open CLI config file: C:\Users\lhsilval\AppData\Roaming\terraform.rc 2020/02/26 16:15:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2020/02/26 16:15:42 [INFO] CLI command args: []string{"plan"} 2020/02/26 16:15:42 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config 2020/02/26 16:15:42 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory 2020/02/26 16:15:42 [DEBUG] New state was assigned lineage "a3b168d6-1442-c55c-3c02-98011bf3042d" 2020/02/26 16:15:42 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) 2020/02/26 16:15:42 [TRACE] Meta.Backend: instantiated backend of type 2020/02/26 16:15:42 [DEBUG] checking for provider in "." 2020/02/26 16:15:42 [DEBUG] checking for provider in "C:\Program Files\terraform" 2020/02/26 16:15:42 [DEBUG] checking for provider in ".terraform\plugins\windows_amd64" 2020/02/26 16:15:42 [DEBUG] found provider "terraform-provider-azurerm_v1.44.0_x4.exe" 2020/02/26 16:15:42 [DEBUG] found valid plugin: "azurerm", "1.44.0", "C:\temp\IaC\terraform\module\.terraform\plugins\windows_amd64\terraform-provider-azurerm_v1.44.0_x4.exe" 2020/02/26 16:15:42 [DEBUG] checking for provisioner in "." 2020/02/26 16:15:42 [DEBUG] checking for provisioner in "C:\Program Files\terraform" 2020/02/26 16:15:42 [DEBUG] checking for provisioner in ".terraform\plugins\windows_amd64" 2020/02/26 16:15:42 [TRACE] Meta.Backend: backend does not support operations, so wrapping it in a local backend 2020/02/26 16:15:42 [INFO] backend/local: starting Plan operation 2020/02/26 16:15:42 [TRACE] backend/local: requesting state manager for workspace "default" 2020/02/26 16:15:42 [TRACE] backend/local: state manager for workspace "default" will:

ghost commented 4 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-azurerm#5918 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-azurerm#5918.

ghost commented 4 years ago

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.