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
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"
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"
resource "azurerm_spring_cloud_service" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
tags = var.tags
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
Parameters
-
id
optional computed - string -
location
required - string -
name
required - string -
outbound_public_ip_addresses
optional computed - list of string -
resource_group_name
required - string -
sku_name
optional - string -
tags
optional - map from string to string -
config_server_git_setting
list block-
label
optional - string -
search_paths
optional - list of string -
uri
required - string -
http_basic_auth
list block -
repository
list block-
label
optional - string -
name
required - string -
pattern
optional - list of string -
search_paths
optional - list of string -
uri
required - string -
http_basic_auth
list block -
ssh_auth
list block-
host_key
optional - string -
host_key_algorithm
optional - string -
private_key
required - string -
strict_host_key_checking_enabled
optional - bool
-
-
-
ssh_auth
list block-
host_key
optional - string -
host_key_algorithm
optional - string -
private_key
required - string -
strict_host_key_checking_enabled
optional - bool
-
-
-
network
list block-
app_network_resource_group
optional computed - string -
app_subnet_id
required - string -
cidr_ranges
required - list of string -
service_runtime_network_resource_group
optional computed - string -
service_runtime_subnet_id
required - string
-
-
timeouts
single block -
trace
list block-
instrumentation_key
required - string -
sample_rate
optional - number
-
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 - stringlocation
optional - stringThe GEO location of the resource.
name
required - stringThe name of the Service resource.
properties
requirednetworkProfile
optionalappNetworkResourceGroup
optional - stringName of the resource group containing network resources of Azure Spring Cloud Apps
appSubnetId
optional - stringFully qualified resource Id of the subnet to host Azure Spring Cloud Apps
serviceCidr
optional - stringAzure Spring Cloud service reserved CIDR
serviceRuntimeNetworkResourceGroup
optional - stringName of the resource group containing network resources of Azure Spring Cloud Service Runtime
serviceRuntimeSubnetId
optional - stringFully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime
sku
optionalcapacity
optional - integerCurrent capacity of the target resource
name
optional - stringName of the Sku
tier
optional - stringTier of the Sku
tags
optional - stringTags 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.