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 = var.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 = azurerm_spring_cloud_service.spring.name
Parameters
-
fqdn
optional computed - string -
https_only
optional - bool -
id
optional computed - string -
is_public
optional - bool -
name
required - string -
resource_group_name
required - string -
service_name
required - string -
tls_enabled
optional - bool -
url
optional computed - string -
identity
list block-
principal_id
optional computed - string -
tenant_id
optional computed - string -
type
optional - string
-
-
persistent_disk
list block-
mount_path
optional - string -
size_in_gb
required - number
-
-
timeouts
single block
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.
Parameters
apiVersion
required - stringidentity
optionalprincipalId
optional - stringPrincipal Id
tenantId
optional - stringTenant Id
type
optional - stringType of the managed identity.
location
optional - stringThe GEO location of the application, always the same with its parent resource
name
required - stringThe name of the App resource.
properties
requiredactiveDeploymentName
optional - stringName of the active deployment of the App
fqdn
optional - stringFully qualified dns Name.
httpsOnly
optional - booleanIndicate if only https is allowed.
persistentDisk
optionalmountPath
optional - stringMount path of the persistent disk
sizeInGB
optional - integerSize of the persistent disk in GB
public
optional - booleanIndicates whether the App exposes public endpoint
temporaryDisk
optionalmountPath
optional - stringMount path of the temporary disk
sizeInGB
optional - integerSize 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.