Microsoft.Automation automationAccounts

Bicep 資源定義

automationAccounts 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Automation/automationAccounts@2023-11-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  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'
    }
  }
}

屬性值

automationAccounts

名稱 描述
NAME 資源名稱 需要字串 ()

字元限制:6-50

合法字元:
英數字元和連字號。

以字母開頭,並以英數字元結尾。
location 取得或設定資源的位置。 字串
tags 取得或設定附加在資源的標記。 標記名稱和值的字典。 請參閱 範本中的標籤
身分識別 設定自動化帳戶的身分識別屬性 身分識別
properties 取得或設定帳戶建立或更新屬性。 AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

Identity

名称 描述
類型 識別類型。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名稱 描述
{自定義屬性} UserAssignedIdentitiesProperties

UserAssignedIdentitiesProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

名稱 描述
disableLocalAuth 指出是否封鎖使用非 AAD 驗證的要求 bool
加密 設定自動化帳戶的加密屬性 EncryptionProperties
publicNetworkAccess 指出是否允許來自公用因特網的非ARM端點上的流量 (Webhook/Agent) bool
sku 取得或設定帳戶 SKU。 Sku

EncryptionProperties

名稱 描述
身分識別 用於 CMK 的使用者身分識別。 EncryptionPropertiesIdentity
keySource 加密金鑰來源 'Microsoft.Automation'
'Microsoft.Keyvault'
keyVaultProperties 金鑰保存庫屬性。 KeyVaultProperties

EncryptionPropertiesIdentity

名稱 描述
userAssignedIdentity 用於 CMK 的使用者身分識別。 其為 ARM 資源標識符,格式為:『/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 針對 Bicep,您可以使用 any () 函式。

KeyVaultProperties

名稱 描述
keyName 用來加密數據的金鑰名稱。 字串
keyvaultUri 用來加密數據之金鑰保存庫金鑰的 URI。 字串
keyVersion 用來加密數據的金鑰金鑰版本。 字串

SKU

名稱 描述
處理能力 取得或設定 SKU 容量。 int
family 取得或設定 SKU 系列。 字串
NAME 取得或設定帳戶的 SKU 名稱。 'Basic'
「免費」 (必要)

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
ASR Runbook

部署至 Azure
部署 ASR 復原方案的自動化 Runbook
OMS ASR 解決方案

部署至 Azure
在 OMS 中啟用 ASR (v2) 解決方案
ARO) Toolkit (Azure 資源優化

部署至 Azure
Azure 資源優化工具組是一種分散式原生 Azure 解決方案,使用無伺服器技術將訂用帳戶上的 Azure 資源優化。 啟用或建立自己的排程之後,優化會自動在您的訂用帳戶上執行,包括新的資源。 這是 Azure 自動化 帳戶,其中包含預先設定的 Runbook 和排程,您可以利用訂用帳戶來開始節省成本。
OMS - Azure 資源使用量解決方案

部署至 Azure
解決方案會將 Azure 資源的相關計費納入 OMS。 資源的成本可以以不同的貨幣和地區設定顯示。
OMS - Azure VM 清查解決方案

部署至 Azure
在 OMS 中啟用 Azure VM 清查解決方案。 解決方案會將 Azure VM 清查以及磁碟、網路元件、NSG 規則和擴充功能收集到 OMS 工作區。
OMS 解決方案 - Hyper-V 複本

部署至 Azure
建立 OMS 解決方案以監視 Hyper-V 複本的範本的範本。
OMS 服務總線解決方案

部署至 Azure
監視 Azure 服務匯流排 實例
OMS VMM 分析

部署至 Azure
提供跨多個 VMM 實例之作業狀態的單一檢視,協助您深入瞭解這些作業的健康情況 & 效能。
建立 Azure 自動化帳戶

部署至 Azure
此範本提供如何建立 Azure 自動化 帳戶,並將其連結至新的或現有的 Azure 監視器 Log Analytics 工作區的範例。

ARM 範本資源定義

automationAccounts 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Automation/automationAccounts",
  "apiVersion": "2023-11-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {}
    }
  },
  "properties": {
    "disableLocalAuth": "bool",
    "encryption": {
      "identity": {
        "userAssignedIdentity": {}
      },
      "keySource": "string",
      "keyVaultProperties": {
        "keyName": "string",
        "keyvaultUri": "string",
        "keyVersion": "string"
      }
    },
    "publicNetworkAccess": "bool",
    "sku": {
      "capacity": "int",
      "family": "string",
      "name": "string"
    }
  }
}

屬性值

automationAccounts

名稱 描述
類型 資源類型 'Microsoft.Automation/automationAccounts'
apiVersion 資源 API 版本 '2023-11-01'
NAME 資源名稱 需要字串 ()

字元限制:6-50

合法字元:
英數字元和連字號。

以字母開頭,並以英數字元結尾。
location 取得或設定資源的位置。 字串
tags 取得或設定附加在資源的標記。 標記名稱和值的字典。 請參閱 範本中的標籤
身分識別 設定自動化帳戶的身分識別屬性 身分識別
properties 取得或設定帳戶建立或更新屬性。 AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

Identity

名称 描述
類型 識別類型。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名稱 描述
{自定義屬性} UserAssignedIdentitiesProperties

UserAssignedIdentitiesProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

名稱 描述
disableLocalAuth 指出是否封鎖使用非 AAD 驗證的要求 bool
加密 設定自動化帳戶的加密屬性 EncryptionProperties
publicNetworkAccess 指出是否允許來自公用因特網的非ARM端點上的流量 (Webhook/Agent) bool
sku 取得或設定帳戶 SKU。 Sku

EncryptionProperties

名稱 描述
身分識別 用於 CMK 的使用者身分識別。 EncryptionPropertiesIdentity
keySource 加密金鑰來源 'Microsoft.Automation'
'Microsoft.Keyvault'
keyVaultProperties 金鑰保存庫屬性。 KeyVaultProperties

EncryptionPropertiesIdentity

名稱 描述
userAssignedIdentity 用於 CMK 的使用者身分識別。 其格式為 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' 形式的 ARM 資源標識符。

KeyVaultProperties

名稱 描述
keyName 用來加密數據的金鑰名稱。 字串
keyvaultUri 用來加密數據之金鑰保存庫金鑰的 URI。 字串
keyVersion 用來加密數據的金鑰金鑰版本。 字串

SKU

名稱 描述
處理能力 取得或設定 SKU 容量。 int
family 取得或設定 SKU 系列。 字串
NAME 取得或設定帳戶的 SKU 名稱。 'Basic'
必要) 的「免費」 (

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
ASR Runbook

部署至 Azure
部署 ASR 復原方案的自動化 Runbook
OMS ASR 解決方案

部署至 Azure
在 OMS 中啟用 ASR (v2) 解決方案
Azure 資源優化 (ARO) 工具組

部署至 Azure
Azure 資源優化工具組是使用無伺服器技術的分散式原生 Azure 解決方案,可優化訂用帳戶上的 Azure 資源。 一旦您啟用或建立自己的排程,包括在新資源上,優化會自動在訂用帳戶上發生。 這是 Azure 自動化 帳戶,其中包含預先設定的 Runbook 和排程,您可以在訂用帳戶上利用以節省成本。
OMS - Azure 資源使用量解決方案

部署至 Azure
解決方案會將 Azure 資源的相關計費納入 OMS。 資源的成本可以以不同的貨幣和地區設定顯示。
OMS - Azure VM 清查解決方案

部署至 Azure
在 OMS 中啟用 Azure VM 清查解決方案。 解決方案會將 Azure VM 清查以及磁碟、網路元件、NSG 規則和擴充功能收集到 OMS 工作區。
OMS 解決方案 - Hyper-V 複本

部署至 Azure
用來建立 OMS 解決方案以監視 Hyper-V 複本的範本的範本。
OMS 服務總線解決方案

部署至 Azure
監視 Azure 服務匯流排 實例
OMS VMM 分析

部署至 Azure
提供跨多個 VMM 實例之作業狀態的單一檢視,協助您深入瞭解這些作業的健康情況 & 效能。
建立 Azure 自動化帳戶

部署至 Azure
此範本提供如何建立 Azure 自動化 帳戶,並將其連結至新的或現有的 Azure 監視器 Log Analytics 工作區的範例。

Terraform (AzAPI 提供者) 資源定義

automationAccounts 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Automation/automationAccounts 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts@2023-11-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      disableLocalAuth = bool
      encryption = {
        identity = {}
        keySource = "string"
        keyVaultProperties = {
          keyName = "string"
          keyvaultUri = "string"
          keyVersion = "string"
        }
      }
      publicNetworkAccess = bool
      sku = {
        capacity = int
        family = "string"
        name = "string"
      }
    }
  })
}

屬性值

automationAccounts

名稱 描述
類型 資源類型 “Microsoft.Automation/automationAccounts@2023-11-01”
NAME 資源名稱 字串 (必要)

字元限制:6-50

合法字元:
英數字元和連字號。

以字母開頭,並以英數字元結尾。
location 取得或設定資源的位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 字串 (必要)
tags 取得或設定附加在資源的標記。 標記名稱和值的字典。
身分識別 設定自動化帳戶的身分識別屬性 身分識別
properties 取得或設定帳戶建立或更新屬性。 AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

Identity

名称 描述
類型 識別類型。 “SystemAssigned”
“SystemAssigned, UserAssigned”
“UserAssigned”
identity_ids 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 使用者身分識別標識碼的陣列。

IdentityUserAssignedIdentities

名稱 描述
{自定義屬性} UserAssignedIdentitiesProperties

UserAssignedIdentitiesProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

AutomationAccountCreateOrUpdatePropertiesOrAutomatio...

名稱 描述
disableLocalAuth 指出是否封鎖使用非 AAD 驗證的要求 bool
加密 設定自動化帳戶的加密屬性 EncryptionProperties
publicNetworkAccess 指出是否允許來自公用因特網的非ARM端點上的流量 (Webhook/Agent) bool
sku 取得或設定帳戶 SKU。 Sku

EncryptionProperties

名稱 描述
身分識別 用於 CMK 的使用者身分識別。 EncryptionPropertiesIdentity
keySource 加密金鑰來源 “Microsoft.Automation”
“Microsoft.Keyvault”
keyVaultProperties 金鑰保存庫屬性。 KeyVaultProperties

EncryptionPropertiesIdentity

名稱 描述
userAssignedIdentity 用於 CMK 的使用者身分識別。 其為 ARM 資源標識符,格式為:『/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

KeyVaultProperties

名稱 描述
keyName 用來加密數據的金鑰名稱。 字串
keyvaultUri 用來加密數據之金鑰保存庫金鑰的 URI。 字串
keyVersion 用來加密數據的金鑰金鑰版本。 字串

SKU

名稱 描述
處理能力 取得或設定 SKU 容量。 int
family 取得或設定 SKU 系列。 字串
NAME 取得或設定帳戶的 SKU 名稱。 "Basic"
「免費」 (必要)