Azure Spring Cloud Java Deployment

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

azurerm_spring_cloud_java_deployment (Terraform)

The Java Deployment in Spring Cloud can be configured in Terraform with the resource name azurerm_spring_cloud_java_deployment. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub
resource "azurerm_spring_cloud_java_deployment" "deployment" {
  for_each = { for deployment_name in var.azurerm_spring_cloud_java_deployments : deployment_name.deployment_name => deployment_name }
  name                = each.value.deployment_name
  spring_cloud_app_id =[each.value.spring_cloud_app_name].id
  cpu                 = each.value.cpu
  memory_in_gb        = each.value.memory_in_gb

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

Manages an Azure Spring Cloud Deployment with a Java runtime.

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

The Spring/apps/deployments in Microsoft.AppPlatform can be configured in Azure Resource Manager with the resource name Microsoft.AppPlatform/Spring/apps/deployments. 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
  • name required - string

    The name of the Deployment resource.

  • properties required
      • deploymentSettings optional
          • cpu optional - integer

            Required CPU, basic tier should be 1, standard tier should be in range (1, 4)

          • environmentVariables optional - string

            Collection of environment variables

          • jvmOptions optional - string

            JVM parameter

          • memoryInGB optional - integer

            Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8)

          • netCoreMainEntryPath optional - string

            The path to the .NET executable relative to zip root

          • runtimeVersion optional - string

            Runtime version.

      • source optional
          • artifactSelector optional - string

            Selector for the artifact to be used for the deployment for multi-module projects. This should be the relative path to the target module/project.

          • relativePath optional - string

            Relative path of the storage which stores the source

          • type optional - string

            Type of the source uploaded.

          • version optional - string

            Version of the source

  • sku optional
      • capacity optional - integer

        Current capacity of the target resource

      • name optional - string

        Name of the Sku

      • tier optional - string

        Tier of the Sku

  • type required - string

Frequently asked questions

What is Azure Spring Cloud Java Deployment?

Azure Spring Cloud Java Deployment 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 Java Deployment?

For Terraform, the kind-grape/terraform-modules-az source code example is useful. See the Terraform Example section for further details.