Bicep 資源定義
叢集/arcSettings/extensions 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.AzureStackHCI/clusters/arcSettings/extensions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.AzureStackHCI/clusters/arcSettings/extensions@2026-11-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
extensionParameters: {
autoUpgradeMinorVersion: bool
enableAutomaticUpgrade: bool
forceUpdateTag: 'string'
protectedSettings: any(...)
publisher: 'string'
settings: any(...)
type: 'string'
typeHandlerVersion: 'string'
}
}
}
屬性值
Microsoft.AzureStackHCI/clusters/arcSettings/extensions
擴展參數
| Name |
Description |
價值 |
| autoUpgradeMinorVersion |
指出如果部署期間有新的次要版本,擴充功能是否應該使用較新的次要版本。 不過,部署之後,除非重新部署,否則擴充功能不會升級次要版本,即使此屬性設定為 true 也一定會升級。 |
bool |
| 啟用自動升級 |
指出如果有較新版本可用,平臺是否應該自動升級延伸模組。 |
bool |
| forceUpdateTag |
即使延伸模組組態尚未變更,延伸模組處理程式也應該強制更新。 |
字串 |
| protectedSettings |
受保護的設定(可能包含秘密)。 |
any |
| 發行者 |
擴充處理程序發行者的名稱。 |
字串 |
| 設定 |
擴充功能的 Json 格式化公用設定。 |
any |
| 型別 |
指定延伸模組的類型;例如“CustomScriptExtension”。 |
字串 |
| typeHandlerVersion |
指定文稿處理程式的版本。 如果未指定,則會使用最新版本。 |
字串 |
ExtensionProperties
| Name |
Description |
價值 |
| extensionParameters (擴展參數) |
這個延伸模組類型特有的參數。 |
擴展參數 |
ARM 樣本資源定義
叢集/arcSettings/extensions 資源類型可以使用目標作業來部署:
使用範例
若要建立 Microsoft.AzureStackHCI/clusters/arcSettings/extensions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions",
"apiVersion": "2026-11-01-preview",
"name": "string",
"properties": {
"extensionParameters": {
"autoUpgradeMinorVersion": "bool",
"enableAutomaticUpgrade": "bool",
"forceUpdateTag": "string",
"protectedSettings": {},
"publisher": "string",
"settings": {},
"type": "string",
"typeHandlerVersion": "string"
}
}
}
屬性值
Microsoft.AzureStackHCI/clusters/arcSettings/extensions
| Name |
Description |
價值 |
| apiVersion |
API 版本 |
『2026-11-01-預覽』 |
| name |
資源名稱 |
字串 (必要) |
| 屬性 |
描述計算機延伸模組屬性。 |
ExtensionProperties |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/clusters/arcSettings/extensions” |
擴展參數
| Name |
Description |
價值 |
| autoUpgradeMinorVersion |
指出如果部署期間有新的次要版本,擴充功能是否應該使用較新的次要版本。 不過,部署之後,除非重新部署,否則擴充功能不會升級次要版本,即使此屬性設定為 true 也一定會升級。 |
bool |
| 啟用自動升級 |
指出如果有較新版本可用,平臺是否應該自動升級延伸模組。 |
bool |
| forceUpdateTag |
即使延伸模組組態尚未變更,延伸模組處理程式也應該強制更新。 |
字串 |
| protectedSettings |
受保護的設定(可能包含秘密)。 |
any |
| 發行者 |
擴充處理程序發行者的名稱。 |
字串 |
| 設定 |
擴充功能的 Json 格式化公用設定。 |
any |
| 型別 |
指定延伸模組的類型;例如“CustomScriptExtension”。 |
字串 |
| typeHandlerVersion |
指定文稿處理程式的版本。 如果未指定,則會使用最新版本。 |
字串 |
ExtensionProperties
| Name |
Description |
價值 |
| extensionParameters (擴展參數) |
這個延伸模組類型特有的參數。 |
擴展參數 |
叢集/arcSettings/extensions 資源類型可以使用目標作業來部署:
-
資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
若要建立 Microsoft.AzureStackHCI/clusters/arcSettings/extensions 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/clusters/arcSettings/extensions@2026-11-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
extensionParameters = {
autoUpgradeMinorVersion = bool
enableAutomaticUpgrade = bool
forceUpdateTag = "string"
protectedSettings = ?
publisher = "string"
settings = ?
type = "string"
typeHandlerVersion = "string"
}
}
}
}
屬性值
Microsoft.AzureStackHCI/clusters/arcSettings/extensions
| Name |
Description |
價值 |
| name |
資源名稱 |
字串 (必要) |
| parent_id |
此資源為父系之資源的標識碼。 |
類型資源的標識碼:叢集/arcSettings |
| 屬性 |
描述計算機延伸模組屬性。 |
ExtensionProperties |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/clusters/arcSettings/extensions@2026-11-01-preview” |
擴展參數
| Name |
Description |
價值 |
| autoUpgradeMinorVersion |
指出如果部署期間有新的次要版本,擴充功能是否應該使用較新的次要版本。 不過,部署之後,除非重新部署,否則擴充功能不會升級次要版本,即使此屬性設定為 true 也一定會升級。 |
bool |
| 啟用自動升級 |
指出如果有較新版本可用,平臺是否應該自動升級延伸模組。 |
bool |
| forceUpdateTag |
即使延伸模組組態尚未變更,延伸模組處理程式也應該強制更新。 |
字串 |
| protectedSettings |
受保護的設定(可能包含秘密)。 |
any |
| 發行者 |
擴充處理程序發行者的名稱。 |
字串 |
| 設定 |
擴充功能的 Json 格式化公用設定。 |
any |
| 型別 |
指定延伸模組的類型;例如“CustomScriptExtension”。 |
字串 |
| typeHandlerVersion |
指定文稿處理程式的版本。 如果未指定,則會使用最新版本。 |
字串 |
ExtensionProperties
| Name |
Description |
價值 |
| extensionParameters (擴展參數) |
這個延伸模組類型特有的參數。 |
擴展參數 |