你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.AppPlatform Spring 2022-11-01-preview
Bicep 资源定义
Spring 资源类型可以通过针对以下操作进行部署:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AppPlatform/Spring 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.AppPlatform/Spring@2022-11-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
sku: {
capacity: int
name: 'string'
tier: 'string'
}
properties: {
marketplaceResource: {
plan: 'string'
product: 'string'
publisher: 'string'
}
networkProfile: {
appNetworkResourceGroup: 'string'
appSubnetId: 'string'
ingressConfig: {
readTimeoutInSeconds: int
}
outboundType: 'string'
serviceCidr: 'string'
serviceRuntimeNetworkResourceGroup: 'string'
serviceRuntimeSubnetId: 'string'
}
vnetAddons: {
logStreamPublicEndpoint: bool
}
zoneRedundant: bool
}
}
属性值
Spring
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 | 字符串 (必需) 字符限制:4-32 有效字符: 小写字母、数字和连字符。 资源名称在 Azure 中必须是唯一的。 |
location | 资源的地理位置。 | 字符串 |
标记 | 服务的标记,它是描述资源的键值对的列表。 | 标记名称和值的字典。 请参阅 模板中的标记 |
sku | 服务资源的 SKU | Sku |
properties | 服务资源的属性 | ClusterResourceProperties |
ClusterResourceProperties
名称 | 说明 | 值 |
---|---|---|
marketplaceResource | 购买服务资源的第三方产品。 | MarketplaceResource |
networkProfile | 服务的网络配置文件 | NetworkProfile |
vnetAddons | vnet 注入实例中的其他服务设置 | ServiceVNetAddons |
zoneRedundant | bool |
MarketplaceResource
名称 | 说明 | 值 |
---|---|---|
plan | 正在采购的第三方项目的计划 ID。 | string |
product | 正在采购的第三方项目。 | string |
发布者 | 正在购买的第三方项目的发布者 ID。 | 字符串 |
NetworkProfile
名称 | 说明 | 值 |
---|---|---|
appNetworkResourceGroup | 包含 Azure Spring Apps 中客户应用的网络资源的资源组的名称 | string |
appSubnetId | 用于在 Azure Spring Apps 中托管客户应用的子网的完全限定资源 ID | string |
ingressConfig | Azure Spring Apps 资源的入口配置有效负载。 | IngressConfig |
outboundType | Azure Spring Apps VNet 实例的出口流量类型。 | 字符串 |
serviceCidr | Azure Spring Apps 服务预留 CIDR | 字符串 |
serviceRuntimeNetworkResourceGroup | 包含 Azure Spring Apps 服务运行时网络资源的资源组的名称 | 字符串 |
serviceRuntimeSubnetId | 用于托管 Azure Spring Apps 服务运行时的子网的完全限定资源 ID | 字符串 |
IngressConfig
名称 | 说明 | 值 |
---|---|---|
readTimeoutInSeconds | 入口读取超时(以秒为单位)。 | int |
ServiceVNetAddons
名称 | 说明 | 值 |
---|---|---|
logStreamPublicEndpoint | 指示是否可以从 Internet 访问 vnet 注入实例中的日志流。 | bool |
SKU
名称 | 说明 | 值 |
---|---|---|
容量 | 目标资源的当前容量 | int |
name | SKU 的名称 | string |
层 | SKU 的层 | 字符串 |
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 说明 |
---|---|
部署简单的 Azure Spring Apps 微服务应用程序 |
此模板部署一个简单的 Azure Spring Apps 微服务应用程序,以在 Azure 上运行。 |
ARM 模板资源定义
可以使用面向以下操作部署 Spring 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AppPlatform/Spring 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.AppPlatform/Spring",
"apiVersion": "2022-11-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"capacity": "int",
"name": "string",
"tier": "string"
},
"properties": {
"marketplaceResource": {
"plan": "string",
"product": "string",
"publisher": "string"
},
"networkProfile": {
"appNetworkResourceGroup": "string",
"appSubnetId": "string",
"ingressConfig": {
"readTimeoutInSeconds": "int"
},
"outboundType": "string",
"serviceCidr": "string",
"serviceRuntimeNetworkResourceGroup": "string",
"serviceRuntimeSubnetId": "string"
},
"vnetAddons": {
"logStreamPublicEndpoint": "bool"
},
"zoneRedundant": "bool"
}
}
属性值
Spring
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | 'Microsoft.AppPlatform/Spring' |
apiVersion | 资源 API 版本 | '2022-11-01-preview' |
name | 资源名称 | 字符串 (必需) 字符限制:4-32 有效字符: 小写字母、数字和连字符。 资源名称在 Azure 中必须是唯一的。 |
location | 资源的地理位置。 | string |
标记 | 服务的标记,它是描述资源的键值对的列表。 | 标记名称和值的字典。 请参阅 模板中的标记 |
sku | 服务资源的 SKU | Sku |
properties | 服务资源的属性 | ClusterResourceProperties |
ClusterResourceProperties
名称 | 说明 | 值 |
---|---|---|
marketplaceResource | 购买服务资源的第三方产品。 | MarketplaceResource |
networkProfile | 服务的网络配置文件 | NetworkProfile |
vnetAddons | vnet 注入实例中的其他服务设置 | ServiceVNetAddons |
zoneRedundant | bool |
MarketplaceResource
名称 | 说明 | 值 |
---|---|---|
plan | 正在采购的第三方项目的计划 ID。 | 字符串 |
product | 正在采购的第三方项目。 | string |
发布者 | 正在购买的第三方项目的发布者 ID。 | string |
NetworkProfile
名称 | 说明 | 值 |
---|---|---|
appNetworkResourceGroup | 包含 Azure Spring Apps 中客户应用的网络资源的资源组的名称 | string |
appSubnetId | 用于在 Azure Spring Apps 中托管客户应用的子网的完全限定资源 ID | 字符串 |
ingressConfig | Azure Spring Apps 资源的入口配置有效负载。 | IngressConfig |
outboundType | Azure Spring Apps VNet 实例的出口流量类型。 | string |
serviceCidr | Azure Spring Apps 服务保留 CIDR | 字符串 |
serviceRuntimeNetworkResourceGroup | 包含 Azure Spring Apps 服务运行时网络资源的资源组的名称 | string |
serviceRuntimeSubnetId | 用于托管 Azure Spring Apps 服务运行时的子网的完全限定资源 ID | 字符串 |
IngressConfig
名称 | 说明 | 值 |
---|---|---|
readTimeoutInSeconds | 入口读取超时(以秒为单位)。 | int |
ServiceVNetAddons
名称 | 说明 | 值 |
---|---|---|
logStreamPublicEndpoint | 指示是否可以从 Internet 访问 vnet 注入实例中的日志流。 | bool |
SKU
名称 | 说明 | 值 |
---|---|---|
容量 | 目标资源的当前容量 | int |
name | SKU 的名称 | 字符串 |
层 | SKU 的层 | 字符串 |
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 说明 |
---|---|
部署简单的 Azure Spring Apps 微服务应用程序 |
此模板部署一个简单的 Azure Spring Apps 微服务应用程序,以在 Azure 上运行。 |
Terraform (AzAPI 提供程序) 资源定义
可以使用面向以下操作部署 Spring 资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AppPlatform/Spring 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AppPlatform/Spring@2022-11-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
marketplaceResource = {
plan = "string"
product = "string"
publisher = "string"
}
networkProfile = {
appNetworkResourceGroup = "string"
appSubnetId = "string"
ingressConfig = {
readTimeoutInSeconds = int
}
outboundType = "string"
serviceCidr = "string"
serviceRuntimeNetworkResourceGroup = "string"
serviceRuntimeSubnetId = "string"
}
vnetAddons = {
logStreamPublicEndpoint = bool
}
zoneRedundant = bool
}
sku = {
capacity = int
name = "string"
tier = "string"
}
})
}
属性值
Spring
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.AppPlatform/Spring@2022-11-01-preview” |
name | 资源名称 | 字符串 (必需) 字符限制:4-32 有效字符: 小写字母、数字和连字符。 资源名称在 Azure 中必须是唯一的。 |
location | 资源的地理位置。 | string |
parent_id | 若要部署到资源组,请使用该资源组的 ID。 | 字符串 (必需) |
标记 | 服务的标记,它是描述资源的键值对的列表。 | 标记名称和值的字典。 |
sku | 服务资源的 SKU | Sku |
properties | 服务资源的属性 | ClusterResourceProperties |
ClusterResourceProperties
名称 | 说明 | 值 |
---|---|---|
marketplaceResource | 购买服务资源的第三方产品。 | MarketplaceResource |
networkProfile | 服务的网络配置文件 | NetworkProfile |
vnetAddons | vnet 注入实例中的其他服务设置 | ServiceVNetAddons |
zoneRedundant | bool |
MarketplaceResource
名称 | 说明 | 值 |
---|---|---|
plan | 正在采购的第三方项目的计划 ID。 | 字符串 |
product | 正在采购的第三方项目。 | string |
发布者 | 正在购买的第三方项目的发布者 ID。 | string |
NetworkProfile
名称 | 说明 | 值 |
---|---|---|
appNetworkResourceGroup | 包含 Azure Spring Apps 中客户应用的网络资源的资源组的名称 | string |
appSubnetId | 用于在 Azure Spring Apps 中托管客户应用的子网的完全限定资源 ID | string |
ingressConfig | Azure Spring Apps 资源的入口配置有效负载。 | IngressConfig |
outboundType | Azure Spring Apps VNet 实例的出口流量类型。 | 字符串 |
serviceCidr | Azure Spring Apps 服务预留 CIDR | string |
serviceRuntimeNetworkResourceGroup | 包含 Azure Spring Apps 服务运行时网络资源的资源组的名称 | string |
serviceRuntimeSubnetId | 用于托管 Azure Spring Apps 服务运行时的子网的完全限定资源 ID | 字符串 |
IngressConfig
名称 | 说明 | 值 |
---|---|---|
readTimeoutInSeconds | 入口读取超时(以秒为单位)。 | int |
ServiceVNetAddons
名称 | 说明 | 值 |
---|---|---|
logStreamPublicEndpoint | 指示是否可以从 Internet 访问 vnet 注入实例中的日志流。 | bool |
SKU
名称 | 说明 | 值 |
---|---|---|
容量 | 目标资源的当前容量 | int |
name | SKU 的名称 | 字符串 |
层 | SKU 层 | 字符串 |