Bicep 資源定義
叢集資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Azure 已驗證的模組
以下的 Azure 已驗證模組 可用於部署此資源類型。
若要建立 Microsoft.AzureStackHCI/clusters 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.AzureStackHCI/clusters@2026-11-01-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
kind: 'string'
location: 'string'
name: 'string'
properties: {
aadApplicationObjectId: 'string'
aadClientId: 'string'
aadServicePrincipalObjectId: 'string'
aadTenantId: 'string'
cloudManagementEndpoint: 'string'
desiredProperties: {
diagnosticLevel: 'string'
windowsServerSubscription: 'string'
}
localAvailabilityZones: [
{
localAvailabilityZoneName: 'string'
nodes: [
'string'
]
}
]
logCollectionProperties: {}
remoteSupportProperties: {}
secretsLocations: [
{
secretsLocation: 'string'
secretsType: 'string'
}
]
softwareAssuranceProperties: {
softwareAssuranceIntent: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.AzureStackHCI/clusters
| 名字 |
描述 |
價值 |
| 身分識別 |
指派給此資源的受控服務識別。 |
ManagedServiceIdentity |
| 類型 |
此特性標示叢集部署的目的。 例如,一個有效的值是 AzureLocal |
string
約束: 圖案 = ^[-\w\._,\(\\\)]+$ |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名字 |
資源名稱 |
字串 (必要) |
| 性能 |
叢集屬性。 |
ClusterProperties |
| 標籤 |
資源標籤 |
標記名稱和值的字典。 請參考模板中的標籤 |
ClusterDesiredProperties
| 名字 |
描述 |
價值 |
| diagnosticLevel |
叢集發出的診斷數據所需層級。 |
“基本” “增強” “關閉” |
| windowsServerSubscription |
Windows Server 訂閱的預期狀態。 |
“已禁用” “已啟用” |
ClusterProperties
LocalAvailabilityZones
| 名字 |
描述 |
價值 |
| localAvailabilityZoneName |
HCI 叢集的本地可用性區域名稱 |
字串 |
| nodes |
屬於特定區域的節點 |
字串[] |
LogCollectionProperties
ManagedServiceIdentity
| 名字 |
描述 |
價值 |
| 型別 |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
“無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| 使用者指派的身份 |
與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
RemoteSupportProperties
秘密地點詳情
| 名字 |
描述 |
價值 |
| secrets位置 |
秘密地點 |
字串 (必要) |
| secretsType |
要儲存的秘密類型 |
「備份秘密」(必備) |
SoftwareAssuranceProperties
| 名字 |
描述 |
價值 |
| softwareAssuranceIntent 軟體保證意圖 |
軟體保證權益的客戶意圖。 |
'禁用' '啟用' |
UserAssignedIdentity
ARM 樣本資源定義
叢集資源類型可以使用目標作業來部署:
使用範例
若要建立 Microsoft.AzureStackHCI/clusters 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.AzureStackHCI/clusters",
"apiVersion": "2026-11-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"kind": "string",
"location": "string",
"properties": {
"aadApplicationObjectId": "string",
"aadClientId": "string",
"aadServicePrincipalObjectId": "string",
"aadTenantId": "string",
"cloudManagementEndpoint": "string",
"desiredProperties": {
"diagnosticLevel": "string",
"windowsServerSubscription": "string"
},
"localAvailabilityZones": [
{
"localAvailabilityZoneName": "string",
"nodes": [ "string" ]
}
],
"logCollectionProperties": {
},
"remoteSupportProperties": {
},
"secretsLocations": [
{
"secretsLocation": "string",
"secretsType": "string"
}
],
"softwareAssuranceProperties": {
"softwareAssuranceIntent": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.AzureStackHCI/clusters
| 名字 |
描述 |
價值 |
| apiVersion |
API 版本 |
『2026-11-01-預覽』 |
| 身分識別 |
指派給此資源的受控服務識別。 |
ManagedServiceIdentity |
| 類型 |
此特性標示叢集部署的目的。 例如,一個有效的值是 AzureLocal |
string
約束: 圖案 = ^[-\w\._,\(\\\)]+$ |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名字 |
資源名稱 |
字串 (必要) |
| 性能 |
叢集屬性。 |
ClusterProperties |
| 標籤 |
資源標籤 |
標記名稱和值的字典。 請參考模板中的標籤 |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/clusters” |
ClusterDesiredProperties
| 名字 |
描述 |
價值 |
| diagnosticLevel |
叢集發出的診斷數據所需層級。 |
“基本” “增強” “關閉” |
| windowsServerSubscription |
Windows Server 訂閱的預期狀態。 |
“已禁用” “已啟用” |
ClusterProperties
LocalAvailabilityZones
| 名字 |
描述 |
價值 |
| localAvailabilityZoneName |
HCI 叢集的本地可用性區域名稱 |
字串 |
| nodes |
屬於特定區域的節點 |
字串[] |
LogCollectionProperties
ManagedServiceIdentity
| 名字 |
描述 |
價值 |
| 型別 |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
“無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| 使用者指派的身份 |
與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
RemoteSupportProperties
秘密地點詳情
| 名字 |
描述 |
價值 |
| secrets位置 |
秘密地點 |
字串 (必要) |
| secretsType |
要儲存的秘密類型 |
「備份秘密」(必備) |
SoftwareAssuranceProperties
| 名字 |
描述 |
價值 |
| softwareAssuranceIntent 軟體保證意圖 |
軟體保證權益的客戶意圖。 |
'禁用' '啟用' |
UserAssignedIdentity
叢集資源類型可以使用目標作業來部署:
-
資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Azure 已驗證的模組
以下的 Azure 已驗證模組 可用於部署此資源類型。
若要建立 Microsoft.AzureStackHCI/clusters 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/clusters@2026-11-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
kind = "string"
properties = {
aadApplicationObjectId = "string"
aadClientId = "string"
aadServicePrincipalObjectId = "string"
aadTenantId = "string"
cloudManagementEndpoint = "string"
desiredProperties = {
diagnosticLevel = "string"
windowsServerSubscription = "string"
}
localAvailabilityZones = [
{
localAvailabilityZoneName = "string"
nodes = [
"string"
]
}
]
logCollectionProperties = {
}
remoteSupportProperties = {
}
secretsLocations = [
{
secretsLocation = "string"
secretsType = "string"
}
]
softwareAssuranceProperties = {
softwareAssuranceIntent = "string"
}
}
}
}
屬性值
Microsoft.AzureStackHCI/clusters
| 名字 |
描述 |
價值 |
| 身分識別 |
指派給此資源的受控服務識別。 |
ManagedServiceIdentity |
| 類型 |
此特性標示叢集部署的目的。 例如,一個有效的值是 AzureLocal |
string
約束: 圖案 = ^[-\w\._,\(\\\)]+$ |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名字 |
資源名稱 |
字串 (必要) |
| 性能 |
叢集屬性。 |
ClusterProperties |
| 標籤 |
資源標籤 |
標記名稱和值的字典。 |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/clusters@2026-11-01-preview” |
ClusterDesiredProperties
| 名字 |
描述 |
價值 |
| diagnosticLevel |
叢集發出的診斷數據所需層級。 |
“基本” “增強” “關閉” |
| windowsServerSubscription |
Windows Server 訂閱的預期狀態。 |
“已禁用” “已啟用” |
ClusterProperties
LocalAvailabilityZones
| 名字 |
描述 |
價值 |
| localAvailabilityZoneName |
HCI 叢集的本地可用性區域名稱 |
字串 |
| nodes |
屬於特定區域的節點 |
字串[] |
LogCollectionProperties
ManagedServiceIdentity
| 名字 |
描述 |
價值 |
| 型別 |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
“無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| 使用者指派的身份 |
與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 |
ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
RemoteSupportProperties
秘密地點詳情
| 名字 |
描述 |
價值 |
| secrets位置 |
秘密地點 |
字串 (必要) |
| secretsType |
要儲存的秘密類型 |
「備份秘密」(必備) |
SoftwareAssuranceProperties
| 名字 |
描述 |
價值 |
| softwareAssuranceIntent 軟體保證意圖 |
軟體保證權益的客戶意圖。 |
'禁用' '啟用' |
UserAssignedIdentity