Bicep resource definition
The Spring resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.AppPlatform/Spring resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.AppPlatform/Spring@2022-03-01-preview' = {
scope: resourceSymbolicName or scope
location: 'string'
name: 'string'
properties: {
networkProfile: {
appNetworkResourceGroup: 'string'
appSubnetId: 'string'
serviceCidr: 'string'
serviceRuntimeNetworkResourceGroup: 'string'
serviceRuntimeSubnetId: 'string'
}
zoneRedundant: bool
}
sku: {
capacity: int
name: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
| Name |
Description |
Value |
| location |
The GEO location of the resource. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the Service resource |
ClusterResourceProperties |
| scope |
Use when creating a resource at a scope that is different than the deployment scope. |
Set this property to the symbolic name of a resource to apply the extension resource. |
| sku |
Sku of the Service resource |
Sku |
| tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
ClusterResourceProperties
| Name |
Description |
Value |
| networkProfile |
Network profile of the Service |
NetworkProfile |
| zoneRedundant |
|
bool |
NetworkProfile
| Name |
Description |
Value |
| appNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Apps |
string |
| appSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps |
string |
| serviceCidr |
Azure Spring Cloud service reserved CIDR |
string |
| serviceRuntimeNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Service Runtime |
string |
| serviceRuntimeSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime |
string |
Sku
| Name |
Description |
Value |
| capacity |
Current capacity of the target resource |
int |
| name |
Name of the Sku |
string |
| tier |
Tier of the Sku |
string |
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
ARM template resource definition
The Spring resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.AppPlatform/Spring resource, add the following JSON to your template.
{
"type": "Microsoft.AppPlatform/Spring",
"apiVersion": "2022-03-01-preview",
"name": "string",
"location": "string",
"properties": {
"networkProfile": {
"appNetworkResourceGroup": "string",
"appSubnetId": "string",
"serviceCidr": "string",
"serviceRuntimeNetworkResourceGroup": "string",
"serviceRuntimeSubnetId": "string"
},
"zoneRedundant": "bool"
},
"sku": {
"capacity": "int",
"name": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
| Name |
Description |
Value |
| apiVersion |
The api version |
'2022-03-01-preview' |
| location |
The GEO location of the resource. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the Service resource |
ClusterResourceProperties |
| sku |
Sku of the Service resource |
Sku |
| tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
| type |
The resource type |
'Microsoft.AppPlatform/Spring' |
ClusterResourceProperties
| Name |
Description |
Value |
| networkProfile |
Network profile of the Service |
NetworkProfile |
| zoneRedundant |
|
bool |
NetworkProfile
| Name |
Description |
Value |
| appNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Apps |
string |
| appSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps |
string |
| serviceCidr |
Azure Spring Cloud service reserved CIDR |
string |
| serviceRuntimeNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Service Runtime |
string |
| serviceRuntimeSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime |
string |
Sku
| Name |
Description |
Value |
| capacity |
Current capacity of the target resource |
int |
| name |
Name of the Sku |
string |
| tier |
Tier of the Sku |
string |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
The Spring resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.AppPlatform/Spring resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AppPlatform/Spring@2022-03-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
networkProfile = {
appNetworkResourceGroup = "string"
appSubnetId = "string"
serviceCidr = "string"
serviceRuntimeNetworkResourceGroup = "string"
serviceRuntimeSubnetId = "string"
}
zoneRedundant = bool
}
sku = {
capacity = int
name = "string"
tier = "string"
}
}
}
Property Values
| Name |
Description |
Value |
| location |
The GEO location of the resource. |
string |
| name |
The resource name |
string (required) |
| parent_id |
The ID of the resource to apply this extension resource to. |
string (required) |
| properties |
Properties of the Service resource |
ClusterResourceProperties |
| sku |
Sku of the Service resource |
Sku |
| tags |
Resource tags |
Dictionary of tag names and values. |
| type |
The resource type |
"Microsoft.AppPlatform/Spring@2022-03-01-preview" |
ClusterResourceProperties
| Name |
Description |
Value |
| networkProfile |
Network profile of the Service |
NetworkProfile |
| zoneRedundant |
|
bool |
NetworkProfile
| Name |
Description |
Value |
| appNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Apps |
string |
| appSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps |
string |
| serviceCidr |
Azure Spring Cloud service reserved CIDR |
string |
| serviceRuntimeNetworkResourceGroup |
Name of the resource group containing network resources of Azure Spring Cloud Service Runtime |
string |
| serviceRuntimeSubnetId |
Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime |
string |
Sku
| Name |
Description |
Value |
| capacity |
Current capacity of the target resource |
int |
| name |
Name of the Sku |
string |
| tier |
Tier of the Sku |
string |
Usage Examples
A basic example of deploying Azure Spring Cloud Service.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "Spring" {
type = "Microsoft.AppPlatform/Spring@2023-05-01-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
zoneRedundant = false
}
sku = {
name = "S0"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}