Bicep 資源定義
sqlServerLicenses 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.AzureArcData/sqlServerLicenses 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.AzureArcData/sqlServerLicenses@2026-03-01-preview' = {
location: 'string'
name: 'string'
properties: {
activationState: 'string'
billingPlan: 'string'
licenseCategory: 'string'
physicalCores: int
scopeType: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.AzureArcData/sqlServerLicenses
| 名字 | 描述 | 價值 |
|---|---|---|
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
| 性能 | SQL Server 授權屬性 | SqlServerLicenseProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
SqlServerLicenseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| activationState | 授權的啟用狀態。 | 'Activated' 'Deactivated' (必要) |
| billingPlan | SQL Server 授權類型。 | '付費' 'PAYG' (必要) |
| licenseCategory | 此屬性代表 SQL Server Core 與 ESU 授權之間的選擇。 | 'Core' (必要) |
| physicalCores | 授權的總核心數目涵蓋。 | int 約束: 最小值 = 16 (必要) |
| scopeType | 將套用授權的 Azure 範圍。 | 'ResourceGroup' 'Subscription' 'Tenant' (必要) |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|
ARM 樣本資源定義
sqlServerLicenses 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.AzureArcData/sqlServerLicenses 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.AzureArcData/sqlServerLicenses",
"apiVersion": "2026-03-01-preview",
"name": "string",
"location": "string",
"properties": {
"activationState": "string",
"billingPlan": "string",
"licenseCategory": "string",
"physicalCores": "int",
"scopeType": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.AzureArcData/sqlServerLicenses
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | 『2026-03-01-預覽』 |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
| 性能 | SQL Server 授權屬性 | SqlServerLicenseProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | 'Microsoft.AzureArcData/sqlServerLicenses' |
SqlServerLicenseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| activationState | 授權的啟用狀態。 | 'Activated' 'Deactivated' (必要) |
| billingPlan | SQL Server 授權類型。 | '付費' 'PAYG' (必要) |
| licenseCategory | 此屬性代表 SQL Server Core 與 ESU 授權之間的選擇。 | 'Core' (必要) |
| physicalCores | 授權的總核心數目涵蓋。 | int 約束: 最小值 = 16 (必要) |
| scopeType | 將套用授權的 Azure 範圍。 | 'ResourceGroup' 'Subscription' 'Tenant' (必要) |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|
Terraform (AzAPI 提供者) 資源定義
sqlServerLicenses 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Microsoft.AzureArcData/sqlServerLicenses 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureArcData/sqlServerLicenses@2026-03-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
activationState = "string"
billingPlan = "string"
licenseCategory = "string"
physicalCores = int
scopeType = "string"
}
}
}
屬性值
Microsoft.AzureArcData/sqlServerLicenses
| 名字 | 描述 | 價值 |
|---|---|---|
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
| 性能 | SQL Server 授權屬性 | SqlServerLicenseProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft。AzureArcData/sqlServerLicenses@2026-03-01-preview” |
SqlServerLicenseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| activationState | 授權的啟用狀態。 | 'Activated' 'Deactivated' (必要) |
| billingPlan | SQL Server 授權類型。 | '付費' 'PAYG' (必要) |
| licenseCategory | 此屬性代表 SQL Server Core 與 ESU 授權之間的選擇。 | 'Core' (必要) |
| physicalCores | 授權的總核心數目涵蓋。 | int 約束: 最小值 = 16 (必要) |
| scopeType | 將套用授權的 Azure 範圍。 | 'ResourceGroup' 'Subscription' 'Tenant' (必要) |
TrackedResourceTags
| 名字 | 描述 | 價值 |
|---|