» azurerm_spring_cloud_app

Manage an Azure Spring Cloud Application.

» Example Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "Southeast Asia"
}

resource "azurerm_spring_cloud_service" "example" {
  name                = "example-springcloud"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "azurerm_spring_cloud_app" "example" {
  name                = "example-springcloudapp"
  resource_group_name = azurerm_resource_group.example.name
  service_name        = azurerm_spring_cloud_service.example.name
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.

  • resource_group_name - (Required) Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.

  • service_name - (Required) Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Spring Cloud Application.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Spring Cloud Application.
  • read - (Defaults to 5 minutes) Used when retrieving the Spring Cloud Application.
  • delete - (Defaults to 30 minutes) Used when deleting the Spring Cloud Application.

» Import

Spring Cloud Application can be imported using the resource id, e.g.

terraform import azurerm_spring_cloud_app.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp