你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
可以使用目标作部署计算机/licenseProfiles 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.HybridCompute/machines/licenseProfiles 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.HybridCompute/machines/licenseProfiles@2026-07-15' = {
parent: resourceSymbolicName
location: 'string'
name: 'default'
properties: {
esuProfile: {
assignedLicense: 'string'
}
productProfile: {
productFeatures: [
{
name: 'string'
subscriptionStatus: 'string'
}
]
productType: 'string'
subscriptionStatus: 'string'
}
softwareAssurance: {
softwareAssuranceCustomer: bool
}
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.HybridCompute/machines/licenseProfiles
| 名称 | Description | Value |
|---|---|---|
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | “default”(必需) |
| 父级 | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源外部的子资源。 |
类型资源的符号名称:计算机 |
| 属性 | 描述许可证配置文件的属性。 | LicenseProfileProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
LicenseProfileArmEsuProperties
| 名称 | Description | Value |
|---|---|---|
| 已分配许可证 | 许可证的资源 ID。 | 字符串 |
LicenseProfileArmProductProfileProperties
| 名称 | Description | Value |
|---|---|---|
| 产品特性 | 产品功能列表。 | ProductFeature[] |
| productType | 指示许可证的产品类型。 | “WindowsIoTEnterprise” “WindowsServer” |
| subscriptionStatus 订阅状态 | 指示产品的订阅状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
LicenseProfileProperties
| 名称 | Description | Value |
|---|---|---|
| esu配置文件 | 混合计算 ESU 配置文件属性 | LicenseProfileArmEsuProperties |
| 产品简介 | 混合计算产品配置文件属性 | LicenseProfileArmProductProfileProperties |
| 软件保障 | LicenseProfilePropertiesSoftwareAssurance |
LicenseProfileProperties软件保障
| 名称 | Description | Value |
|---|---|---|
| softwareAssurance 客户 | 指定此计算机是否作为软件保障协议的一部分获得许可。 | bool |
产品特点
| 名称 | Description | Value |
|---|---|---|
| 名字 | 产品名称。 | 字符串 |
| subscriptionStatus 订阅状态 | 指示产品功能的当前状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
TrackedResourceTags
| 名称 | Description | Value |
|---|
ARM 模板资源定义
可以使用目标作部署计算机/licenseProfiles 资源类型:
用法示例
资源格式
若要创建 Microsoft.HybridCompute/machines/licenseProfiles 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.HybridCompute/machines/licenseProfiles",
"apiVersion": "2026-07-15",
"name": "string",
"location": "string",
"properties": {
"esuProfile": {
"assignedLicense": "string"
},
"productProfile": {
"productFeatures": [
{
"name": "string",
"subscriptionStatus": "string"
}
],
"productType": "string",
"subscriptionStatus": "string"
},
"softwareAssurance": {
"softwareAssuranceCustomer": "bool"
}
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.HybridCompute/machines/licenseProfiles
| 名称 | Description | Value |
|---|---|---|
| apiVersion | API 版本 | '2026-07-15' |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | “default”(必需) |
| 属性 | 描述许可证配置文件的属性。 | LicenseProfileProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
| 类型 | 资源类型 | “Microsoft.HybridCompute/machines/licenseProfiles” |
LicenseProfileArmEsuProperties
| 名称 | Description | Value |
|---|---|---|
| 已分配许可证 | 许可证的资源 ID。 | 字符串 |
LicenseProfileArmProductProfileProperties
| 名称 | Description | Value |
|---|---|---|
| 产品特性 | 产品功能列表。 | ProductFeature[] |
| productType | 指示许可证的产品类型。 | “WindowsIoTEnterprise” “WindowsServer” |
| subscriptionStatus 订阅状态 | 指示产品的订阅状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
LicenseProfileProperties
| 名称 | Description | Value |
|---|---|---|
| esu配置文件 | 混合计算 ESU 配置文件属性 | LicenseProfileArmEsuProperties |
| 产品简介 | 混合计算产品配置文件属性 | LicenseProfileArmProductProfileProperties |
| 软件保障 | LicenseProfilePropertiesSoftwareAssurance |
LicenseProfileProperties软件保障
| 名称 | Description | Value |
|---|---|---|
| softwareAssurance 客户 | 指定此计算机是否作为软件保障协议的一部分获得许可。 | bool |
产品特点
| 名称 | Description | Value |
|---|---|---|
| 名字 | 产品名称。 | 字符串 |
| subscriptionStatus 订阅状态 | 指示产品功能的当前状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
TrackedResourceTags
| 名称 | Description | Value |
|---|
Terraform (AzAPI 提供程序)资源定义
可以使用目标作部署计算机/licenseProfiles 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
若要创建 Microsoft.HybridCompute/machines/licenseProfiles 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.HybridCompute/machines/licenseProfiles@2026-07-15"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
esuProfile = {
assignedLicense = "string"
}
productProfile = {
productFeatures = [
{
name = "string"
subscriptionStatus = "string"
}
]
productType = "string"
subscriptionStatus = "string"
}
softwareAssurance = {
softwareAssuranceCustomer = bool
}
}
}
}
属性值
Microsoft.HybridCompute/machines/licenseProfiles
| 名称 | Description | Value |
|---|---|---|
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | “default”(必需) |
| parent_id | 此资源的父资源的 ID。 | 类型资源的 ID:计算机 |
| 属性 | 描述许可证配置文件的属性。 | LicenseProfileProperties |
| 标记 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft。混合计算/机器/licenseProfiles@2026-07-15” |
LicenseProfileArmEsuProperties
| 名称 | Description | Value |
|---|---|---|
| 已分配许可证 | 许可证的资源 ID。 | 字符串 |
LicenseProfileArmProductProfileProperties
| 名称 | Description | Value |
|---|---|---|
| 产品特性 | 产品功能列表。 | ProductFeature[] |
| productType | 指示许可证的产品类型。 | “WindowsIoTEnterprise” “WindowsServer” |
| subscriptionStatus 订阅状态 | 指示产品的订阅状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
LicenseProfileProperties
| 名称 | Description | Value |
|---|---|---|
| esu配置文件 | 混合计算 ESU 配置文件属性 | LicenseProfileArmEsuProperties |
| 产品简介 | 混合计算产品配置文件属性 | LicenseProfileArmProductProfileProperties |
| 软件保障 | LicenseProfilePropertiesSoftwareAssurance |
LicenseProfileProperties软件保障
| 名称 | Description | Value |
|---|---|---|
| softwareAssurance 客户 | 指定此计算机是否作为软件保障协议的一部分获得许可。 | bool |
产品特点
| 名称 | Description | Value |
|---|---|---|
| 名字 | 产品名称。 | 字符串 |
| subscriptionStatus 订阅状态 | 指示产品功能的当前状态。 | “Disabled” “禁用” “Enabled” “启用” “Failed” 'Unknown' |
TrackedResourceTags
| 名称 | Description | Value |
|---|