你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep资源定义
可以使用目标作部署计划程序资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DurableTask/schedulers 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.DurableTask/schedulers@2026-05-01-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
ipAllowlist: [
'string'
]
publicNetworkAccess: 'string'
sku: {
capacity: int
name: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft。DurableTask/schedulers
| Name | Description | Value |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[a-zA-Z0-9-]{3,64}$ (必需) |
| 属性 | 此资源的资源特定属性。 | SchedulerProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典键将是 ARM 资源 ID,形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
SchedulerProperties
| Name | Description | Value |
|---|---|---|
| ip允许列表 | 持久任务计划程序 IP 允许列表。 值可以是 IPv4、IPv6 或 CIDR | string[](必需) |
| 公用网络访问 | 允许或禁止对持久任务调度器的公共网络access | 'Disabled' 'Enabled' |
| sku | 持久任务计划程序 SKU | SchedulerSku (必需) |
SchedulerSku
| Name | Description | Value |
|---|---|---|
| 产能 | SKU 容量。 这允许横向扩展/缩小资源并影响区域冗余 | int |
| 名字 | SKU 的名称 | “消耗” “专用”(必填) |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|
ARM 模板资源定义
可以使用目标作部署计划程序资源类型:
用法示例
资源格式
若要创建 Microsoft.DurableTask/schedulers 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.DurableTask/schedulers",
"apiVersion": "2026-05-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"ipAllowlist": [ "string" ],
"publicNetworkAccess": "string",
"sku": {
"capacity": "int",
"name": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft。DurableTask/schedulers
| Name | Description | Value |
|---|---|---|
| apiVersion | API 版本 | '2026-05-01-预览' |
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[a-zA-Z0-9-]{3,64}$ (必需) |
| 属性 | 此资源的资源特定属性。 | SchedulerProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
| 类型 | 资源类型 | “Microsoft.DurableTask/schedulers” |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典键将是 ARM 资源 ID,形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
SchedulerProperties
| Name | Description | Value |
|---|---|---|
| ip允许列表 | 持久任务计划程序 IP 允许列表。 值可以是 IPv4、IPv6 或 CIDR | string[](必需) |
| 公用网络访问 | 允许或禁止对持久任务调度器的公共网络access | 'Disabled' 'Enabled' |
| sku | 持久任务计划程序 SKU | SchedulerSku (必需) |
SchedulerSku
| Name | Description | Value |
|---|---|---|
| 产能 | SKU 容量。 这允许横向扩展/缩小资源并影响区域冗余 | int |
| 名字 | SKU 的名称 | “消耗” “专用”(必填) |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|
Terraform (AzAPI 提供程序)资源定义
可以使用目标作部署计划程序资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
若要创建 Microsoft.DurableTask/schedulers 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DurableTask/schedulers@2026-05-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
ipAllowlist = [
"string"
]
publicNetworkAccess = "string"
sku = {
capacity = int
name = "string"
}
}
}
}
属性值
Microsoft。DurableTask/schedulers
| Name | Description | Value |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string 约束: 模式 = ^[a-zA-Z0-9-]{3,64}$ (必需) |
| 属性 | 此资源的资源特定属性。 | SchedulerProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft。DurableTask/schedulers@2026-05-01-preview” |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典键将是 ARM 资源 ID,形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
SchedulerProperties
| Name | Description | Value |
|---|---|---|
| ip允许列表 | 持久任务计划程序 IP 允许列表。 值可以是 IPv4、IPv6 或 CIDR | string[](必需) |
| 公用网络访问 | 允许或禁止对持久任务调度器的公共网络access | 'Disabled' 'Enabled' |
| sku | 持久任务计划程序 SKU | SchedulerSku (必需) |
SchedulerSku
| Name | Description | Value |
|---|---|---|
| 产能 | SKU 容量。 这允许横向扩展/缩小资源并影响区域冗余 | int |
| 名字 | SKU 的名称 | “消耗” “专用”(必填) |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|