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
-
cpuoptional - number -
environment_variablesoptional - map from string to string -
idoptional computed - string -
instance_countoptional - number -
jvm_optionsoptional - string -
memory_in_gboptional - number -
namerequired - string -
runtime_versionoptional - string -
spring_cloud_app_idrequired - string -
timeoutssingle 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
apiVersionrequired - stringnamerequired - stringThe name of the Deployment resource.
propertiesrequireddeploymentSettingsoptionalcpuoptional - integerRequired CPU, basic tier should be 1, standard tier should be in range (1, 4)
environmentVariablesoptional - stringCollection of environment variables
jvmOptionsoptional - stringJVM parameter
memoryInGBoptional - integerRequired Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8)
netCoreMainEntryPathoptional - stringThe path to the .NET executable relative to zip root
runtimeVersionoptional - stringRuntime version.
sourceoptionalartifactSelectoroptional - 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.
relativePathoptional - stringRelative path of the storage which stores the source
typeoptional - stringType of the source uploaded.
versionoptional - stringVersion of the source
skuoptionalcapacityoptional - integerCurrent capacity of the target resource
nameoptional - stringName of the Sku
tieroptional - stringTier of the Sku
typerequired - 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.