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 = azurerm_spring_cloud_app.app[each.value.spring_cloud_app_name].id
cpu = each.value.cpu
memory_in_gb = each.value.memory_in_gb
Parameters
-
cpu
optional - number -
environment_variables
optional - map from string to string -
id
optional computed - string -
instance_count
optional - number -
jvm_options
optional - string -
memory_in_gb
optional - number -
name
required - string -
runtime_version
optional - string -
spring_cloud_app_id
required - string -
timeouts
single block
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.
Parameters
apiVersion
required - stringname
required - stringThe name of the Deployment resource.
properties
requireddeploymentSettings
optionalcpu
optional - integerRequired CPU, basic tier should be 1, standard tier should be in range (1, 4)
environmentVariables
optional - stringCollection of environment variables
jvmOptions
optional - stringJVM parameter
memoryInGB
optional - integerRequired Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8)
netCoreMainEntryPath
optional - stringThe path to the .NET executable relative to zip root
runtimeVersion
optional - stringRuntime version.
source
optionalartifactSelector
optional - stringSelector 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 - stringRelative path of the storage which stores the source
type
optional - stringType of the source uploaded.
version
optional - stringVersion of the source
sku
optionalcapacity
optional - integerCurrent capacity of the target resource
name
optional - stringName of the Sku
tier
optional - stringTier 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.