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

creating azurerm_app_service_plan returned an error. Status=<nil> #1981

Closed
lumy opened this issue Sep 26, 2018 · 3 comments
Closed

creating azurerm_app_service_plan returned an error. Status=<nil> #1981

lumy opened this issue Sep 26, 2018 · 3 comments

Comments

@lumy
Copy link

lumy commented Sep 26, 2018

Terraform Version

Terraform v0.11.8

  • provider.azurerm v1.14.0

Affected Resource(s)

  • azurerm_app_service_plan
  • azurerm_app_service

Terraform Configuration Files

resource "azurerm_app_service_plan" "plan" {
  name                = "plan"
  location            = "${azurerm_resource_group.sandbox.location}"
  resource_group_name = "${azurerm_resource_group.sandbox.name}"
  kind                = "Linux"

  sku {
    tier = "Standard"
    size = "S1"
  }

  properties {
    reserved = true
  }
}

resource "azurerm_app_service" "app" {
  name                = "as-content-api"
  location            = "${azurerm_resource_group.sandbox.location}"
  resource_group_name = "${azurerm_resource_group.sandbox.name}"
  app_service_plan_id = "${azurerm_app_service_plan.plan.id}"

  site_config {
    linux_fx_version = "DOCKER|hello-world:latest"
  }

  app_settings {
    "WEBSITES_PORT"                       = "8080"
    "WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false"
  }
}

Actual Behavior

Throw an error:

  • azurerm_app_service_plan.plan: 1 error(s) occurred:

  • azurerm_app_service_plan.plan: web.AppServicePlansClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=

Steps to Reproduce

  1. terraform apply

References

@elthariel
Copy link

iirc, it works correctly whithout reserved = true

@katbyte katbyte added bug and removed question labels Oct 25, 2018
@katbyte katbyte added this to the 1.19.0 milestone Oct 25, 2018
@tombuildsstuff tombuildsstuff modified the milestones: 1.19.0, 1.20.0 Nov 14, 2018
@tombuildsstuff tombuildsstuff modified the milestones: 1.20.0, 1.21.0 Dec 3, 2018
@tombuildsstuff tombuildsstuff modified the milestones: 1.21.0, Future Jan 10, 2019
@tombuildsstuff
Copy link
Member

hi @lumy @elthariel

Thanks for opening this issue :)

Just to let you know that I've added some examples for using Containers within an App Service in #2913 which should help clarify this.

Thanks!

katbyte pushed a commit that referenced this issue Feb 26, 2019
adding docker compose examples to app service docs

Fixes #2827
Fixes #1633
Fixes #1981
@ghost
Copy link

ghost commented Mar 29, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants