Azure Spring Cloud Service

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

azurerm_spring_cloud_service (Terraform)

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

Example Usage from GitHub

main.tf#L15
resource "azurerm_spring_cloud_service" "default" {
  name                = "example-springcloud"
  resource_group_name = azurerm_resource_group.default.name
  location            = azurerm_resource_group.default.location
  sku_name            = "B0"

spring-cloud.tf#L56
resource "azurerm_spring_cloud_service" "prd" {
  name                = "prd-library"
  resource_group_name = azurerm_resource_group.prd.name
  location            = azurerm_resource_group.prd.location
  sku_name            = "S0"

main.tf#L7
resource "azurerm_spring_cloud_service" "this" {
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name
  tags                = var.tags

main.tf#L2
resource "azurerm_spring_cloud_service" "spring" {
  name                = var.spring_cloud_service_name
  location            = var.resource_group_location
  resource_group_name = var.resource_group_name

  sku_name             = var.spring_cloud_service_sku

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).

Parameters

Explanation in Terraform Registry

Manages an Azure Spring Cloud Service.

Microsoft.AppPlatform/Spring (Azure Resource Manager)

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

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • location optional - string

    The GEO location of the resource.

  • name required - string

    The name of the Service resource.

  • properties required
      • networkProfile optional
          • appNetworkResourceGroup optional - string

            Name of the resource group containing network resources of Azure Spring Cloud Apps

          • appSubnetId optional - string

            Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps

          • serviceCidr optional - string

            Azure Spring Cloud service reserved CIDR

          • serviceRuntimeNetworkResourceGroup optional - string

            Name of the resource group containing network resources of Azure Spring Cloud Service Runtime

          • serviceRuntimeSubnetId optional - string

            Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime

  • 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

  • tags optional - string

    Tags of the service which is a list of key value pairs that describe the resource.

  • type required - string

Frequently asked questions

What is Azure Spring Cloud Service?

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

For Terraform, the msftph/azure-spring-cloud-terraform, edoardopelli/terraform-azure and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.