Azure Spring Cloud App

This page shows how to write Terraform and Azure Resource Manager for Spring Cloud App and write them securely.

azurerm_spring_cloud_app (Terraform)

The App in Spring Cloud can be configured in Terraform with the resource name azurerm_spring_cloud_app. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "azurerm_spring_cloud_app" "scapp" {
  name                = var.azurerm_spring_cloud_app_name
  resource_group_name = var.resource_group_name
  service_name        = var.service_name
resource "azurerm_spring_cloud_app" "this" {
  name                =
  resource_group_name = var.resource_group_name
  service_name        = var.service_name

  dynamic "timeouts" {
resource "azurerm_spring_cloud_app" "app" {
  for_each = { for app_name in var.azurerm_spring_cloud_apps : app_name.app_name => app_name }

  name                = each.value.app_name
  resource_group_name = var.resource_group_name
  service_name        =

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


Explanation in Terraform Registry

Manage an Azure Spring Cloud Application.

Microsoft.AppPlatform/Spring/apps (Azure Resource Manager)

The Spring/apps in Microsoft.AppPlatform can be configured in Azure Resource Manager with the resource name Microsoft.AppPlatform/Spring/apps. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.


  • apiVersion required - string
  • identity optional
      • principalId optional - string

        Principal Id

      • tenantId optional - string

        Tenant Id

      • type optional - string

        Type of the managed identity.

  • location optional - string

    The GEO location of the application, always the same with its parent resource

  • name required - string

    The name of the App resource.

  • properties required
      • activeDeploymentName optional - string

        Name of the active deployment of the App

      • fqdn optional - string

        Fully qualified dns Name.

      • httpsOnly optional - boolean

        Indicate if only https is allowed.

      • persistentDisk optional
          • mountPath optional - string

            Mount path of the persistent disk

          • sizeInGB optional - integer

            Size of the persistent disk in GB

      • public optional - boolean

        Indicates whether the App exposes public endpoint

      • temporaryDisk optional
          • mountPath optional - string

            Mount path of the temporary disk

          • sizeInGB optional - integer

            Size of the temporary disk in GB

  • type required - string

Frequently asked questions

What is Azure Spring Cloud App?

Azure Spring Cloud App is a resource for Spring Cloud of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Spring Cloud App?

For Terraform, the rafadalibera/AzureSpringCloud-IaC, niveklabs/azurerm and kind-grape/terraform-modules-az source code examples are useful. See the Terraform Example section for further details.