Bicep 資源定義
automationAccounts 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Automation/automationAccounts@2024-10-23' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
disableLocalAuth: bool
encryption: {
identity: {
userAssignedIdentity: any(...)
}
keySource: 'string'
keyVaultProperties: {
keyName: 'string'
keyvaultUri: 'string'
keyVersion: 'string'
}
}
publicNetworkAccess: bool
sku: {
capacity: int
family: 'string'
name: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
AutomationAccountCreateOrUpdatePropertiesOrAutomationAccountProperties
名字 |
描述 |
價值 |
disableLocalAuth |
指出是否封鎖使用非 AAD 驗證的要求 |
bool |
加密 |
設定自動化帳戶的加密屬性 |
EncryptionProperties |
publicNetworkAccess |
指出是否允許來自公用因特網的非ARM端點 (Webhook/Agent) 上的流量 |
bool |
sku |
取得或設定帳戶 SKU。 |
Sku |
EncryptionProperties
EncryptionPropertiesIdentity
名字 |
描述 |
價值 |
userAssignedIdentity |
CMK 所使用的使用者身分識別。 其格式為 :'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
任何 |
身份
名字 |
描述 |
價值 |
類型 |
識別類型。 |
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
userAssignedIdentities |
與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
KeyVaultProperties
名字 |
描述 |
價值 |
keyName |
用來加密數據的金鑰名稱。 |
字串 |
keyvaultUri |
用來加密數據之金鑰保存庫金鑰的 URI。 |
字串 |
keyVersion |
用來加密數據之金鑰的金鑰版本。 |
字串 |
Microsoft.Automation/automationAccounts
Sku
名字 |
描述 |
價值 |
能力 |
取得或設定 SKU 容量。 |
int |
家庭 |
取得或設定 SKU 系列。 |
字串 |
名字 |
取得或設定帳戶的 SKU 名稱。 |
'Basic' 'Free' (必要) |
UserAssignedIdentitiesProperties
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
模組 |
描述 |
自動化帳戶 |
自動化帳戶的AVM資源模組 |
Azure 快速入門範例
下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。
ARM 樣本資源定義
automationAccounts 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Automation/automationAccounts",
"apiVersion": "2024-10-23",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"disableLocalAuth": "bool",
"encryption": {
"identity": {
"userAssignedIdentity": {}
},
"keySource": "string",
"keyVaultProperties": {
"keyName": "string",
"keyvaultUri": "string",
"keyVersion": "string"
}
},
"publicNetworkAccess": "bool",
"sku": {
"capacity": "int",
"family": "string",
"name": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
AutomationAccountCreateOrUpdatePropertiesOrAutomationAccountProperties
名字 |
描述 |
價值 |
disableLocalAuth |
指出是否封鎖使用非 AAD 驗證的要求 |
bool |
加密 |
設定自動化帳戶的加密屬性 |
EncryptionProperties |
publicNetworkAccess |
指出是否允許來自公用因特網的非ARM端點 (Webhook/Agent) 上的流量 |
bool |
sku |
取得或設定帳戶 SKU。 |
Sku |
EncryptionProperties
EncryptionPropertiesIdentity
名字 |
描述 |
價值 |
userAssignedIdentity |
CMK 所使用的使用者身分識別。 其格式為 :'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
任何 |
身份
名字 |
描述 |
價值 |
類型 |
識別類型。 |
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
userAssignedIdentities |
與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
KeyVaultProperties
名字 |
描述 |
價值 |
keyName |
用來加密數據的金鑰名稱。 |
字串 |
keyvaultUri |
用來加密數據之金鑰保存庫金鑰的 URI。 |
字串 |
keyVersion |
用來加密數據之金鑰的金鑰版本。 |
字串 |
Microsoft.Automation/automationAccounts
Sku
名字 |
描述 |
價值 |
能力 |
取得或設定 SKU 容量。 |
int |
家庭 |
取得或設定 SKU 系列。 |
字串 |
名字 |
取得或設定帳戶的 SKU 名稱。 |
'Basic' 'Free' (必要) |
UserAssignedIdentitiesProperties
使用範例
Azure 快速入門範本
下列 Azure 快速入門範本 部署此資源類型。
automationAccounts 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Automation/automationAccounts@2024-10-23"
name = "string"
identity = {
type = "string"
userAssignedIdentities = {
{customized property} = {
}
}
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
disableLocalAuth = bool
encryption = {
identity = {
userAssignedIdentity = ?
}
keySource = "string"
keyVaultProperties = {
keyName = "string"
keyvaultUri = "string"
keyVersion = "string"
}
}
publicNetworkAccess = bool
sku = {
capacity = int
family = "string"
name = "string"
}
}
}
}
屬性值
AutomationAccountCreateOrUpdatePropertiesOrAutomationAccountProperties
名字 |
描述 |
價值 |
disableLocalAuth |
指出是否封鎖使用非 AAD 驗證的要求 |
bool |
加密 |
設定自動化帳戶的加密屬性 |
EncryptionProperties |
publicNetworkAccess |
指出是否允許來自公用因特網的非ARM端點 (Webhook/Agent) 上的流量 |
bool |
sku |
取得或設定帳戶 SKU。 |
Sku |
EncryptionProperties
EncryptionPropertiesIdentity
名字 |
描述 |
價值 |
userAssignedIdentity |
CMK 所使用的使用者身分識別。 其格式為 :'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
任何 |
身份
名字 |
描述 |
價值 |
類型 |
識別類型。 |
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned' |
userAssignedIdentities |
與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 |
IdentityUserAssignedIdentities |
IdentityUserAssignedIdentities
KeyVaultProperties
名字 |
描述 |
價值 |
keyName |
用來加密數據的金鑰名稱。 |
字串 |
keyvaultUri |
用來加密數據之金鑰保存庫金鑰的 URI。 |
字串 |
keyVersion |
用來加密數據之金鑰的金鑰版本。 |
字串 |
Microsoft.Automation/automationAccounts
Sku
名字 |
描述 |
價值 |
能力 |
取得或設定 SKU 容量。 |
int |
家庭 |
取得或設定 SKU 系列。 |
字串 |
名字 |
取得或設定帳戶的 SKU 名稱。 |
'Basic' 'Free' (必要) |
UserAssignedIdentitiesProperties