Microsoft.MachineLearningServices 工作區/計算 2020-09-01-preview

Bicep 資源定義

工作區/計算資源類型可以使用目標作業來部署:

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

使用範例

Bicep 範例

部署機器學習運算的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource component 'Microsoft.Insights/components@2020-02-02' = {
  name: resourceName
  location: location
  kind: 'web'
  properties: {
    Application_Type: 'web'
    DisableIpMasking: false
    DisableLocalAuth: false
    ForceCustomerStorageForProfiler: false
    RetentionInDays: 90
    SamplingPercentage: 100
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
  }
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2021-09-01' = {
  name: resourceName
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
}

resource vault 'Microsoft.KeyVault/vaults@2021-10-01' = {
  name: resourceName
  location: location
  properties: {
    accessPolicies: []
    createMode: 'default'
    enablePurgeProtection: true
    enableRbacAuthorization: false
    enableSoftDelete: true
    enabledForDeployment: false
    enabledForDiskEncryption: false
    enabledForTemplateDeployment: false
    publicNetworkAccess: 'Enabled'
    sku: {
      family: 'A'
      name: 'standard'
    }
    tenantId: tenant().tenantId
  }
}

resource workspace 'Microsoft.MachineLearningServices/workspaces@2022-05-01' = {
  name: resourceName
  location: location
  sku: {
    name: 'Basic'
    tier: 'Basic'
  }
  properties: {
    applicationInsights: component.id
    keyVault: vault.id
    publicNetworkAccess: 'Enabled'
    storageAccount: storageAccount.id
    v1LegacyMode: false
  }
}

resource compute 'Microsoft.MachineLearningServices/workspaces/computes@2022-05-01' = {
  name: resourceName
  location: location
  parent: workspace
  properties: {
    computeLocation: 'westeurope'
    computeType: 'ComputeInstance'
    description: ''
    disableLocalAuth: true
    properties: {
      vmSize: 'STANDARD_D2_V2'
    }
  }
}

Azure 已驗證的模組

下列 Azure 驗證模組 可用來部署此資源類型。

Module 描述
機器學習 Services Workspace - Compute 機器學習 Services Workspace 的 AVM 子模組 - 計算

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 描述
Azure Machine Learning 端對端安全設定 這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
Azure Machine Learning 端對端安全設定 (舊版) 這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
建立具有私人IP位址的 AKS 計算目標 此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。

資源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    computeLocation: 'string'
    description: 'string'
    resourceId: 'string'
    computeType: 'string'
    // For remaining properties, see Compute objects
  }
  sku: {
    name: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

計算物件

設定 computeType 屬性,以指定物件的類型。

針對 AKS,請使用:

{
  computeType: 'AKS'
  properties: {
    agentCount: int
    agentVmSize: 'string'
    aksNetworkingConfiguration: {
      dnsServiceIP: 'string'
      dockerBridgeCidr: 'string'
      serviceCidr: 'string'
      subnetId: 'string'
    }
    clusterFqdn: 'string'
    sslConfiguration: {
      cert: 'string'
      cname: 'string'
      key: 'string'
      status: 'string'
    }
  }
}

針對 AmlCompute,請使用:

{
  computeType: 'AmlCompute'
  properties: {
    enableNodePublicIp: bool
    isolatedNetwork: bool
    osType: 'string'
    remoteLoginPortPublicAccess: 'string'
    scaleSettings: {
      maxNodeCount: int
      minNodeCount: int
      nodeIdleTimeBeforeScaleDown: 'string'
    }
    subnet: {
      id: 'string'
    }
    userAccountCredentials: {
      adminUserName: 'string'
      adminUserPassword: 'string'
      adminUserSshPublicKey: 'string'
    }
    virtualMachineImage: {
      id: 'string'
    }
    vmPriority: 'string'
    vmSize: 'string'
  }
}

針對 ComputeInstance,請使用:

{
  computeType: 'ComputeInstance'
  properties: {
    applicationSharingPolicy: 'string'
    computeInstanceAuthorizationType: 'string'
    personalComputeInstanceSettings: {
      assignedUser: {
        objectId: 'string'
        tenantId: 'string'
      }
    }
    setupScripts: {
      scripts: {
        creationScript: {
          scriptArguments: 'string'
          scriptData: 'string'
          scriptSource: 'string'
          timeout: 'string'
        }
        startupScript: {
          scriptArguments: 'string'
          scriptData: 'string'
          scriptSource: 'string'
          timeout: 'string'
        }
      }
    }
    sshSettings: {
      adminPublicKey: 'string'
      sshPublicAccess: 'string'
    }
    subnet: {
      id: 'string'
    }
    vmSize: 'string'
  }
}

針對 DataFactory,請使用:

{
  computeType: 'DataFactory'
}

針對 DataLakeAnalytics,請使用:

{
  computeType: 'DataLakeAnalytics'
  properties: {
    dataLakeStoreAccountName: 'string'
  }
}

針對 Databricks,請使用:

{
  computeType: 'Databricks'
  properties: {
    databricksAccessToken: 'string'
  }
}

針對 HDInsight,請使用:

{
  computeType: 'HDInsight'
  properties: {
    address: 'string'
    administratorAccount: {
      password: 'string'
      privateKeyData: 'string'
      publicKeyData: 'string'
      username: 'string'
    }
    sshPort: int
  }
}

針對 VirtualMachine,請使用:

{
  computeType: 'VirtualMachine'
  properties: {
    address: 'string'
    administratorAccount: {
      password: 'string'
      privateKeyData: 'string'
      publicKeyData: 'string'
      username: 'string'
    }
    sshPort: int
    virtualMachineSize: 'string'
  }
}

屬性值

Microsoft.MachineLearningServices/workspaces/computes

名字 描述 價值
身分識別 資源的身分識別。 身分識別
位置 指定資源的位置。 字串
名字 資源名稱 字串 (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型的資源符號名稱:工作區
性能 計算屬性 計算
SKU 工作區的 SKU。 SKU
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

AKS

名字 描述 價值
computeType 計算的類型 'AKS' (必要)
性能 AKS 屬性 AKSProperties

AksNetworkingConfiguration

名字 描述 價值
dnsServiceIP 指派給 Kubernetes DNS 服務的 IP 位址。 它必須位於 serviceCidr 中指定的 Kubernetes 服務地址範圍內。 字串

約束:
圖案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 它不得與任何子網 IP 範圍或 Kubernetes 服務地址範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
serviceCidr 服務 要從中指派服務叢集IP的CIDR表示法IP範圍。 它不得與任何子網IP範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
子網ID 計算節點所屬的虛擬網路子網資源標識碼 字串

AKSProperties

名字 描述 價值
agentCount 代理程式數目 int

約束:
最小值 = 1
agentVmSize 代理程式虛擬機大小 字串
aksNetworkingConfiguration vnet 的 AKS 網路設定 AksNetworkingConfiguration
clusterFqdn 集群 叢集完整功能變數名稱 字串
ssl配置 SSL 組態 SslConfiguration

AmlCompute

名字 描述 價值
computeType 計算的類型 'AmlCompute' (必要)
性能 AML 計算屬性 AmlComputeProperties

AmlComputeProperties

名字 描述 價值
啟用 NodePublicIp 啟用或停用節點公用IP位址布建。 可能的值為:可能的值為:true - 表示計算節點會布建公用IP。 false - 表示計算節點會有私人端點,而且沒有公用IP。 布爾 (bool)
隔離網路 網路已隔離或未隔離 布爾 (bool)
osType 計算 OS 類型 'Linux的'
“Windows”
remoteLoginPortPublicAccess 公用 SSH 埠的狀態。 可能的值為:已停用 - 指出叢集所有節點上的公用 SSH 埠已關閉。 已啟用 - 指出叢集的所有節點上已開啟公用 SSH 埠。 NotSpecified - 指出如果已定義 VNet,則叢集的所有節點上都會關閉公用 SSH 埠,否則會開啟所有公用節點。 它只能在叢集建立期間預設,建立之後才會啟用或停用。 “已禁用”
“已啟用”
“未指定”
scaleSettings (縮放設置) AML 計算的調整設定 ScaleSettings (縮放設置)
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
userAccountCredentials 將在每個計算節點上建立之系統管理員用戶帳戶的認證。 UserAccountCredentials (使用者帳戶憑證)
虛擬機器映像 AML 計算的虛擬機映射 - 僅限視窗 VirtualMachineImage 虛擬機鏡像
vmPriority 虛擬機優先順序 “專注”
“低優先順序”
vmSize 虛擬機大小 字串

已分配使用者

名字 描述 價值
物件ID 使用者的 AAD 物件識別碼。 字串 (必要)
租戶ID 使用者的 AAD 租使用者識別碼。 字串 (必要)

Compute

名字 描述 價值
computeLocation 基礎計算的位置 字串
computeType 將 類型設定為 'AKS',AKS。 針對 AmlCompute 類型設定為 'AmlCompute',AmlCompute。 將 類型設定為 'ComputeInstance' ComputeInstance。 針對 dataFactory 類型 設定為 'DataFactory',。 針對 dataLakeAnalytics 類型 設定為 'DataLakeAnalytics',。 針對 Databricks 類型 設定為 'Databricks',。 針對 HDInsight 類型設定為 『HDInsight』,。 針對 virtualMachine 類型設定為 'VirtualMachine',。 'AKS'
“AmlCompute”
“計算實例”
“Databricks”
“數據工廠”
“DataLakeAnalytics”
“HDInsight”
'VirtualMachine' (必要)
描述 機器學習 計算的描述。 字串
資源ID 基礎計算的 ARM 資源識別碼 字串

計算實例

名字 描述 價值
computeType 計算的類型 'ComputeInstance' (必要)
性能 計算實例屬性 ComputeInstanceProperties

ComputeInstanceProperties

名字 描述 價值
applicationSharingPolicy 的 在父工作區用戶之間共用此計算實例上應用程式的原則。 如果為 Personal,則只有建立者可以存取此計算實例上的應用程式。 當共用時,任何工作區使用者都可以根據指派的角色存取此實例上的應用程式。 “個人”
“共用”
computeInstanceAuthorizationType 計算實例授權類型。 可用的值為個人值(預設值)。 “個人”
personalComputeInstanceSettings 個人計算實例的設定。 PersonalComputeInstanceSettings
setupScripts 用來設定叢集的自定義腳本詳細數據。 設置腳本
ssh設置 指定 SSH 存取的原則和設定。 ComputeInstanceSshSettings
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
vmSize 虛擬機大小 字串

ComputeInstanceSshSettings

名字 描述 價值
adminPublicKey 管理員公鑰 將 SSH rsa 公鑰檔案指定為字串。 使用 「ssh-keygen -t rsa -b 2048」 來產生 SSH 密鑰組。 字串
sshPublicAccess 公用 SSH 埠的狀態。 可能的值為:Disabled - 指出此實例上的公用 SSH 埠已關閉。 已啟用 - 指出如果適用,公用 SSH 埠已開啟且可依 VNet/子網原則存取。 “已禁用”
“已啟用”

Databricks

名字 描述 價值
computeType 計算的類型 'Databricks' (必要)
性能 DatabricksProperties

DatabricksProperties

名字 描述 價值
databricksAccessToken Databricks 存取令牌 字串

數據工廠

名字 描述 價值
computeType 計算的類型 'DataFactory' (必要)

DataLakeAnalytics

名字 描述 價值
computeType 計算的類型 'DataLakeAnalytics' (必要)
性能 DataLakeAnalytics屬性

DataLakeAnalytics屬性

名字 描述 價值
dataLakeStoreAccountName DataLake Store 帳戶名稱 字串

HDInsight

名字 描述 價值
computeType 計算的類型 'HDInsight' (必要)
性能 HDInsightProperties

HDInsightProperties

名字 描述 價值
位址 叢集主要節點的公用IP位址。 字串
管理員帳戶 叢集主要節點的管理員認證 VirtualMachineSshCredentials
sshPort 針對叢集主要節點上的SSH連線開啟埠。 整數 (int)

身份

名字 描述 價值
型別 識別類型。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned'
使用者指派的身份 使用者指派與資源相關聯的身分識別。 UserAssignedIdentities

PersonalComputeInstanceSettings

名字 描述 價值
已分配使用者 明確指派給個人計算實例的使用者。 已分配使用者

資源識別碼 (ResourceId)

名字 描述 價值
識別碼 資源的標識碼 字串 (必要)

資源標籤

名字 描述 價值

縮放設置

名字 描述 價值
maxNodeCount 要使用的節點數目上限 int (必要)
minNodeCount 要使用的節點數目下限 整數 (int)
nodeIdleTimeBeforeScaleDown 相應減少 amlCompute 之前的節點空閒時間。 此字串必須是 RFC 格式。 字串

文稿引用

名字 描述 價值
script參數 傳遞至腳本以執行的選擇性命令行自變數。 字串
文本數據 掛接磁碟區中的腳本位置。 字串
scriptSource (腳本源) 腳本的儲存來源:內嵌、工作區。 字串
超時 傳遞至逾時命令的選擇性時段。 字串

ScriptsToExecute 腳本

名字 描述 價值
creationScript 在布建計算期間只執行一次的腳本。 文稿引用
startupScript (啟動腳本) 每次機器啟動時都會執行的腳本。 文稿引用

設置腳本

名字 描述 價值
腳本 自訂設定文稿 ScriptsToExecute 腳本

SKU

名字 描述 價值
名字 SKU 的名稱 字串
分層 基本或企業等 SKU 的階層 字串

SSL 設定

名字 描述 價值
證書 憑證數據 字串
cname (標準名稱) 憑證的 CNAME 字串
Key 索引鍵數據 字串
狀態 啟用或停用 SSL 以進行評分 '自動'
“已禁用”
“已啟用”

UserAccountCredentials (使用者帳戶憑證)

名字 描述 價值
管理者用戶名 可用來透過 SSH 連線到節點的系統管理員用戶帳戶名稱。 字串 (必要)
adminUserPassword 管理員用戶密碼 系統管理員用戶帳戶的密碼。 字串
adminUserSshPublicKey 系統管理員用戶帳戶的 SSH 公鑰。 字串

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

虛擬機

名字 描述 價值
computeType 計算的類型 'VirtualMachine' (必要)
性能 VirtualMachineProperties

VirtualMachineImage 虛擬機鏡像

名字 描述 價值
識別碼 虛擬機映像路徑 字串 (必要)

VirtualMachineProperties

名字 描述 價值
位址 虛擬機的公用IP位址。 字串
管理員帳戶 虛擬機的管理員認證 VirtualMachineSshCredentials
sshPort 針對SSH連線開啟埠。 整數 (int)
virtualMachineSize (虛擬機器大小) 虛擬機大小 字串

VirtualMachineSshCredentials

名字 描述 價值
密碼 系統管理員帳戶的密碼 字串
私有金鑰資料 私鑰資料 字串
publicKeyData 的 公鑰資料 字串
使用者名稱 系統管理員帳戶的用戶名稱 字串

ARM 樣本資源定義

工作區/計算資源類型可以使用目標作業來部署:

使用範例

Azure 快速入門範本

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

範本 描述
Azure Machine Learning 端對端安全設定

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
Azure Machine Learning 端對端安全設定 (舊版)

部署至 Azure
這組 Bicep 範本示範如何在安全設定中設定 Azure Machine Learning 端對端。 此參考實作包括工作區、計算叢集、計算實例和附加的私人 AKS 叢集。
在 Azure Machine Learning 工作區中建立 LinkedService

部署至 Azure
此範本會在現有的 Azure Machine Learning 工作區中建立 LinkedService。
建立機器學習服務 ADLA 計算

部署至 Azure
此範本會建立 機器學習 服務 ADLA Compute。
建立 機器學習 服務 Aks 計算

部署至 Azure
此範本會建立 機器學習 服務 Aks Compute。
建立機器學習服務 DSVM 計算

部署至 Azure
此範本會建立機器學習服務 DSVM 計算。
建立機器學習服務 HDInsight 叢集

部署至 Azure
此範本會建立機器學習服務 HDInsight 叢集
建立具有私人IP位址的 AKS 計算目標

部署至 Azure
此範本會在具有私人IP位址的指定 Azure Machine Learning 服務工作區中建立 AKS 計算目標。
建立 Azure Machine Learning aks 計算

部署至 Azure
此範本會建立 Azure Machine Learning aks 計算。
建立 Azure Machine Learning 計算叢集

部署至 Azure
此範本會建立 Azure Machine Learning 計算叢集。
建立 Azure Machine Learning 計算執行個體

部署至 Azure
此範本會代表另一位具有範例內嵌設定腳本的使用者建立 Azure Machine Learning 計算實例

資源格式

若要建立 Microsoft.MachineLearningServices/workspaces/computes 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.MachineLearningServices/workspaces/computes",
  "apiVersion": "2020-09-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "computeLocation": "string",
    "description": "string",
    "resourceId": "string",
    "computeType": "string"
    // For remaining properties, see Compute objects
  },
  "sku": {
    "name": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

計算物件

設定 computeType 屬性,以指定物件的類型。

針對 AKS,請使用:

{
  "computeType": "AKS",
  "properties": {
    "agentCount": "int",
    "agentVmSize": "string",
    "aksNetworkingConfiguration": {
      "dnsServiceIP": "string",
      "dockerBridgeCidr": "string",
      "serviceCidr": "string",
      "subnetId": "string"
    },
    "clusterFqdn": "string",
    "sslConfiguration": {
      "cert": "string",
      "cname": "string",
      "key": "string",
      "status": "string"
    }
  }
}

針對 AmlCompute,請使用:

{
  "computeType": "AmlCompute",
  "properties": {
    "enableNodePublicIp": "bool",
    "isolatedNetwork": "bool",
    "osType": "string",
    "remoteLoginPortPublicAccess": "string",
    "scaleSettings": {
      "maxNodeCount": "int",
      "minNodeCount": "int",
      "nodeIdleTimeBeforeScaleDown": "string"
    },
    "subnet": {
      "id": "string"
    },
    "userAccountCredentials": {
      "adminUserName": "string",
      "adminUserPassword": "string",
      "adminUserSshPublicKey": "string"
    },
    "virtualMachineImage": {
      "id": "string"
    },
    "vmPriority": "string",
    "vmSize": "string"
  }
}

針對 ComputeInstance,請使用:

{
  "computeType": "ComputeInstance",
  "properties": {
    "applicationSharingPolicy": "string",
    "computeInstanceAuthorizationType": "string",
    "personalComputeInstanceSettings": {
      "assignedUser": {
        "objectId": "string",
        "tenantId": "string"
      }
    },
    "setupScripts": {
      "scripts": {
        "creationScript": {
          "scriptArguments": "string",
          "scriptData": "string",
          "scriptSource": "string",
          "timeout": "string"
        },
        "startupScript": {
          "scriptArguments": "string",
          "scriptData": "string",
          "scriptSource": "string",
          "timeout": "string"
        }
      }
    },
    "sshSettings": {
      "adminPublicKey": "string",
      "sshPublicAccess": "string"
    },
    "subnet": {
      "id": "string"
    },
    "vmSize": "string"
  }
}

針對 DataFactory,請使用:

{
  "computeType": "DataFactory"
}

針對 DataLakeAnalytics,請使用:

{
  "computeType": "DataLakeAnalytics",
  "properties": {
    "dataLakeStoreAccountName": "string"
  }
}

針對 Databricks,請使用:

{
  "computeType": "Databricks",
  "properties": {
    "databricksAccessToken": "string"
  }
}

針對 HDInsight,請使用:

{
  "computeType": "HDInsight",
  "properties": {
    "address": "string",
    "administratorAccount": {
      "password": "string",
      "privateKeyData": "string",
      "publicKeyData": "string",
      "username": "string"
    },
    "sshPort": "int"
  }
}

針對 VirtualMachine,請使用:

{
  "computeType": "VirtualMachine",
  "properties": {
    "address": "string",
    "administratorAccount": {
      "password": "string",
      "privateKeyData": "string",
      "publicKeyData": "string",
      "username": "string"
    },
    "sshPort": "int",
    "virtualMachineSize": "string"
  }
}

屬性值

Microsoft.MachineLearningServices/workspaces/computes

名字 描述 價值
apiVersion API 版本 “2020-09-01-預覽”
身分識別 資源的身分識別。 身分識別
位置 指定資源的位置。 字串
名字 資源名稱 字串 (必要)
性能 計算屬性 計算
SKU 工作區的 SKU。 SKU
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.MachineLearningServices/workspaces/computes”

AKS

名字 描述 價值
computeType 計算的類型 'AKS' (必要)
性能 AKS 屬性 AKSProperties

AksNetworkingConfiguration

名字 描述 價值
dnsServiceIP 指派給 Kubernetes DNS 服務的 IP 位址。 它必須位於 serviceCidr 中指定的 Kubernetes 服務地址範圍內。 字串

約束:
圖案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 它不得與任何子網 IP 範圍或 Kubernetes 服務地址範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
serviceCidr 服務 要從中指派服務叢集IP的CIDR表示法IP範圍。 它不得與任何子網IP範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
子網ID 計算節點所屬的虛擬網路子網資源標識碼 字串

AKSProperties

名字 描述 價值
agentCount 代理程式數目 int

約束:
最小值 = 1
agentVmSize 代理程式虛擬機大小 字串
aksNetworkingConfiguration vnet 的 AKS 網路設定 AksNetworkingConfiguration
clusterFqdn 集群 叢集完整功能變數名稱 字串
ssl配置 SSL 組態 SslConfiguration

AmlCompute

名字 描述 價值
computeType 計算的類型 'AmlCompute' (必要)
性能 AML 計算屬性 AmlComputeProperties

AmlComputeProperties

名字 描述 價值
啟用 NodePublicIp 啟用或停用節點公用IP位址布建。 可能的值為:可能的值為:true - 表示計算節點會布建公用IP。 false - 表示計算節點會有私人端點,而且沒有公用IP。 布爾 (bool)
隔離網路 網路已隔離或未隔離 布爾 (bool)
osType 計算 OS 類型 'Linux的'
“Windows”
remoteLoginPortPublicAccess 公用 SSH 埠的狀態。 可能的值為:已停用 - 指出叢集所有節點上的公用 SSH 埠已關閉。 已啟用 - 指出叢集的所有節點上已開啟公用 SSH 埠。 NotSpecified - 指出如果已定義 VNet,則叢集的所有節點上都會關閉公用 SSH 埠,否則會開啟所有公用節點。 它只能在叢集建立期間預設,建立之後才會啟用或停用。 “已禁用”
“已啟用”
“未指定”
scaleSettings (縮放設置) AML 計算的調整設定 ScaleSettings (縮放設置)
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
userAccountCredentials 將在每個計算節點上建立之系統管理員用戶帳戶的認證。 UserAccountCredentials (使用者帳戶憑證)
虛擬機器映像 AML 計算的虛擬機映射 - 僅限視窗 VirtualMachineImage 虛擬機鏡像
vmPriority 虛擬機優先順序 “專注”
“低優先順序”
vmSize 虛擬機大小 字串

已分配使用者

名字 描述 價值
物件ID 使用者的 AAD 物件識別碼。 字串 (必要)
租戶ID 使用者的 AAD 租使用者識別碼。 字串 (必要)

Compute

名字 描述 價值
computeLocation 基礎計算的位置 字串
computeType 將 類型設定為 'AKS',AKS。 針對 AmlCompute 類型設定為 'AmlCompute',AmlCompute。 將 類型設定為 'ComputeInstance' ComputeInstance。 針對 dataFactory 類型 設定為 'DataFactory',。 針對 dataLakeAnalytics 類型 設定為 'DataLakeAnalytics',。 針對 Databricks 類型 設定為 'Databricks',。 針對 HDInsight 類型設定為 『HDInsight』,。 針對 virtualMachine 類型設定為 'VirtualMachine',。 'AKS'
“AmlCompute”
“計算實例”
“Databricks”
“數據工廠”
“DataLakeAnalytics”
“HDInsight”
'VirtualMachine' (必要)
描述 機器學習 計算的描述。 字串
資源ID 基礎計算的 ARM 資源識別碼 字串

計算實例

名字 描述 價值
computeType 計算的類型 'ComputeInstance' (必要)
性能 計算實例屬性 ComputeInstanceProperties

ComputeInstanceProperties

名字 描述 價值
applicationSharingPolicy 的 在父工作區用戶之間共用此計算實例上應用程式的原則。 如果為 Personal,則只有建立者可以存取此計算實例上的應用程式。 當共用時,任何工作區使用者都可以根據指派的角色存取此實例上的應用程式。 “個人”
“共用”
computeInstanceAuthorizationType 計算實例授權類型。 可用的值為個人值(預設值)。 “個人”
personalComputeInstanceSettings 個人計算實例的設定。 PersonalComputeInstanceSettings
setupScripts 用來設定叢集的自定義腳本詳細數據。 設置腳本
ssh設置 指定 SSH 存取的原則和設定。 ComputeInstanceSshSettings
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
vmSize 虛擬機大小 字串

ComputeInstanceSshSettings

名字 描述 價值
adminPublicKey 管理員公鑰 將 SSH rsa 公鑰檔案指定為字串。 使用 「ssh-keygen -t rsa -b 2048」 來產生 SSH 密鑰組。 字串
sshPublicAccess 公用 SSH 埠的狀態。 可能的值為:Disabled - 指出此實例上的公用 SSH 埠已關閉。 已啟用 - 指出如果適用,公用 SSH 埠已開啟且可依 VNet/子網原則存取。 “已禁用”
“已啟用”

Databricks

名字 描述 價值
computeType 計算的類型 'Databricks' (必要)
性能 DatabricksProperties

DatabricksProperties

名字 描述 價值
databricksAccessToken Databricks 存取令牌 字串

數據工廠

名字 描述 價值
computeType 計算的類型 'DataFactory' (必要)

DataLakeAnalytics

名字 描述 價值
computeType 計算的類型 'DataLakeAnalytics' (必要)
性能 DataLakeAnalytics屬性

DataLakeAnalytics屬性

名字 描述 價值
dataLakeStoreAccountName DataLake Store 帳戶名稱 字串

HDInsight

名字 描述 價值
computeType 計算的類型 'HDInsight' (必要)
性能 HDInsightProperties

HDInsightProperties

名字 描述 價值
位址 叢集主要節點的公用IP位址。 字串
管理員帳戶 叢集主要節點的管理員認證 VirtualMachineSshCredentials
sshPort 針對叢集主要節點上的SSH連線開啟埠。 整數 (int)

身份

名字 描述 價值
型別 識別類型。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned'
使用者指派的身份 使用者指派與資源相關聯的身分識別。 UserAssignedIdentities

PersonalComputeInstanceSettings

名字 描述 價值
已分配使用者 明確指派給個人計算實例的使用者。 已分配使用者

資源識別碼 (ResourceId)

名字 描述 價值
識別碼 資源的標識碼 字串 (必要)

資源標籤

名字 描述 價值

縮放設置

名字 描述 價值
maxNodeCount 要使用的節點數目上限 int (必要)
minNodeCount 要使用的節點數目下限 整數 (int)
nodeIdleTimeBeforeScaleDown 相應減少 amlCompute 之前的節點空閒時間。 此字串必須是 RFC 格式。 字串

文稿引用

名字 描述 價值
script參數 傳遞至腳本以執行的選擇性命令行自變數。 字串
文本數據 掛接磁碟區中的腳本位置。 字串
scriptSource (腳本源) 腳本的儲存來源:內嵌、工作區。 字串
超時 傳遞至逾時命令的選擇性時段。 字串

ScriptsToExecute 腳本

名字 描述 價值
creationScript 在布建計算期間只執行一次的腳本。 文稿引用
startupScript (啟動腳本) 每次機器啟動時都會執行的腳本。 文稿引用

設置腳本

名字 描述 價值
腳本 自訂設定文稿 ScriptsToExecute 腳本

SKU

名字 描述 價值
名字 SKU 的名稱 字串
分層 基本或企業等 SKU 的階層 字串

SSL 設定

名字 描述 價值
證書 憑證數據 字串
cname (標準名稱) 憑證的 CNAME 字串
Key 索引鍵數據 字串
狀態 啟用或停用 SSL 以進行評分 '自動'
“已禁用”
“已啟用”

UserAccountCredentials (使用者帳戶憑證)

名字 描述 價值
管理者用戶名 可用來透過 SSH 連線到節點的系統管理員用戶帳戶名稱。 字串 (必要)
adminUserPassword 管理員用戶密碼 系統管理員用戶帳戶的密碼。 字串
adminUserSshPublicKey 系統管理員用戶帳戶的 SSH 公鑰。 字串

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

虛擬機

名字 描述 價值
computeType 計算的類型 'VirtualMachine' (必要)
性能 VirtualMachineProperties

VirtualMachineImage 虛擬機鏡像

名字 描述 價值
識別碼 虛擬機映像路徑 字串 (必要)

VirtualMachineProperties

名字 描述 價值
位址 虛擬機的公用IP位址。 字串
管理員帳戶 虛擬機的管理員認證 VirtualMachineSshCredentials
sshPort 針對SSH連線開啟埠。 整數 (int)
virtualMachineSize (虛擬機器大小) 虛擬機大小 字串

VirtualMachineSshCredentials

名字 描述 價值
密碼 系統管理員帳戶的密碼 字串
私有金鑰資料 私鑰資料 字串
publicKeyData 的 公鑰資料 字串
使用者名稱 系統管理員帳戶的用戶名稱 字串

Terraform (AzAPI 提供者) 資源定義

工作區/計算資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

使用範例

Terraform 範例

部署機器學習運算的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
    azurerm = {
      source = "hashicorp/azurerm"
    }
  }
}

provider "azurerm" {
  features {
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

data "azurerm_client_config" "current" {
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
  body = {
    tags = {
      stage = "test"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "storageAccount" {
  type      = "Microsoft.Storage/storageAccounts@2021-09-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "StorageV2"
    sku = {
      name = "Standard_LRS"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "component" {
  type      = "Microsoft.Insights/components@2020-02-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "web"
    properties = {
      Application_Type                = "web"
      DisableIpMasking                = false
      DisableLocalAuth                = false
      ForceCustomerStorageForProfiler = false
      RetentionInDays                 = 90
      SamplingPercentage              = 100
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "vault" {
  type      = "Microsoft.KeyVault/vaults@2021-10-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      accessPolicies               = []
      createMode                   = "default"
      enablePurgeProtection        = true
      enableRbacAuthorization      = false
      enableSoftDelete             = true
      enabledForDeployment         = false
      enabledForDiskEncryption     = false
      enabledForTemplateDeployment = false
      publicNetworkAccess          = "Enabled"
      sku = {
        family = "A"
        name   = "standard"
      }
      tenantId = data.azurerm_client_config.current.tenant_id
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
  lifecycle {
    ignore_changes = [body.properties.accessPolicies]
  }
}

resource "azapi_resource" "workspace" {
  type      = "Microsoft.MachineLearningServices/workspaces@2022-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  identity {
    type         = "SystemAssigned"
    identity_ids = []
  }
  body = {
    properties = {
      applicationInsights = azapi_resource.component.id
      keyVault            = azapi_resource.vault.id
      publicNetworkAccess = "Enabled"
      storageAccount      = azapi_resource.storageAccount.id
      v1LegacyMode        = false
    }
    sku = {
      name = "Basic"
      tier = "Basic"
    }
  }
  schema_validation_enabled = false
  ignore_casing             = true
  response_export_values    = ["*"]
}

resource "azapi_resource" "compute" {
  type      = "Microsoft.MachineLearningServices/workspaces/computes@2022-05-01"
  parent_id = azapi_resource.workspace.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      computeLocation  = "westeurope"
      computeType      = "ComputeInstance"
      description      = ""
      disableLocalAuth = true
      properties = {
        vmSize = "STANDARD_D2_V2"
      }
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

資源格式

若要建立 Microsoft.MachineLearningServices/workspaces/computes 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      computeLocation = "string"
      description = "string"
      resourceId = "string"
      computeType = "string"
      // For remaining properties, see Compute objects
    }
    sku = {
      name = "string"
      tier = "string"
    }
  }
}

計算物件

設定 computeType 屬性,以指定物件的類型。

針對 AKS,請使用:

{
  computeType = "AKS"
  properties = {
    agentCount = int
    agentVmSize = "string"
    aksNetworkingConfiguration = {
      dnsServiceIP = "string"
      dockerBridgeCidr = "string"
      serviceCidr = "string"
      subnetId = "string"
    }
    clusterFqdn = "string"
    sslConfiguration = {
      cert = "string"
      cname = "string"
      key = "string"
      status = "string"
    }
  }
}

針對 AmlCompute,請使用:

{
  computeType = "AmlCompute"
  properties = {
    enableNodePublicIp = bool
    isolatedNetwork = bool
    osType = "string"
    remoteLoginPortPublicAccess = "string"
    scaleSettings = {
      maxNodeCount = int
      minNodeCount = int
      nodeIdleTimeBeforeScaleDown = "string"
    }
    subnet = {
      id = "string"
    }
    userAccountCredentials = {
      adminUserName = "string"
      adminUserPassword = "string"
      adminUserSshPublicKey = "string"
    }
    virtualMachineImage = {
      id = "string"
    }
    vmPriority = "string"
    vmSize = "string"
  }
}

針對 ComputeInstance,請使用:

{
  computeType = "ComputeInstance"
  properties = {
    applicationSharingPolicy = "string"
    computeInstanceAuthorizationType = "string"
    personalComputeInstanceSettings = {
      assignedUser = {
        objectId = "string"
        tenantId = "string"
      }
    }
    setupScripts = {
      scripts = {
        creationScript = {
          scriptArguments = "string"
          scriptData = "string"
          scriptSource = "string"
          timeout = "string"
        }
        startupScript = {
          scriptArguments = "string"
          scriptData = "string"
          scriptSource = "string"
          timeout = "string"
        }
      }
    }
    sshSettings = {
      adminPublicKey = "string"
      sshPublicAccess = "string"
    }
    subnet = {
      id = "string"
    }
    vmSize = "string"
  }
}

針對 DataFactory,請使用:

{
  computeType = "DataFactory"
}

針對 DataLakeAnalytics,請使用:

{
  computeType = "DataLakeAnalytics"
  properties = {
    dataLakeStoreAccountName = "string"
  }
}

針對 Databricks,請使用:

{
  computeType = "Databricks"
  properties = {
    databricksAccessToken = "string"
  }
}

針對 HDInsight,請使用:

{
  computeType = "HDInsight"
  properties = {
    address = "string"
    administratorAccount = {
      password = "string"
      privateKeyData = "string"
      publicKeyData = "string"
      username = "string"
    }
    sshPort = int
  }
}

針對 VirtualMachine,請使用:

{
  computeType = "VirtualMachine"
  properties = {
    address = "string"
    administratorAccount = {
      password = "string"
      privateKeyData = "string"
      publicKeyData = "string"
      username = "string"
    }
    sshPort = int
    virtualMachineSize = "string"
  }
}

屬性值

Microsoft.MachineLearningServices/workspaces/computes

名字 描述 價值
身分識別 資源的身分識別。 身分識別
位置 指定資源的位置。 字串
名字 資源名稱 字串 (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型資源的標識碼:工作區
性能 計算屬性 計算
SKU 工作區的 SKU。 SKU
標籤 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview”

AKS

名字 描述 價值
computeType 計算的類型 'AKS' (必要)
性能 AKS 屬性 AKSProperties

AksNetworkingConfiguration

名字 描述 價值
dnsServiceIP 指派給 Kubernetes DNS 服務的 IP 位址。 它必須位於 serviceCidr 中指定的 Kubernetes 服務地址範圍內。 字串

約束:
圖案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 它不得與任何子網 IP 範圍或 Kubernetes 服務地址範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
serviceCidr 服務 要從中指派服務叢集IP的CIDR表示法IP範圍。 它不得與任何子網IP範圍重疊。 字串

約束:
圖案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$
子網ID 計算節點所屬的虛擬網路子網資源標識碼 字串

AKSProperties

名字 描述 價值
agentCount 代理程式數目 int

約束:
最小值 = 1
agentVmSize 代理程式虛擬機大小 字串
aksNetworkingConfiguration vnet 的 AKS 網路設定 AksNetworkingConfiguration
clusterFqdn 集群 叢集完整功能變數名稱 字串
ssl配置 SSL 組態 SslConfiguration

AmlCompute

名字 描述 價值
computeType 計算的類型 'AmlCompute' (必要)
性能 AML 計算屬性 AmlComputeProperties

AmlComputeProperties

名字 描述 價值
啟用 NodePublicIp 啟用或停用節點公用IP位址布建。 可能的值為:可能的值為:true - 表示計算節點會布建公用IP。 false - 表示計算節點會有私人端點,而且沒有公用IP。 布爾 (bool)
隔離網路 網路已隔離或未隔離 布爾 (bool)
osType 計算 OS 類型 'Linux的'
“Windows”
remoteLoginPortPublicAccess 公用 SSH 埠的狀態。 可能的值為:已停用 - 指出叢集所有節點上的公用 SSH 埠已關閉。 已啟用 - 指出叢集的所有節點上已開啟公用 SSH 埠。 NotSpecified - 指出如果已定義 VNet,則叢集的所有節點上都會關閉公用 SSH 埠,否則會開啟所有公用節點。 它只能在叢集建立期間預設,建立之後才會啟用或停用。 “已禁用”
“已啟用”
“未指定”
scaleSettings (縮放設置) AML 計算的調整設定 ScaleSettings (縮放設置)
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
userAccountCredentials 將在每個計算節點上建立之系統管理員用戶帳戶的認證。 UserAccountCredentials (使用者帳戶憑證)
虛擬機器映像 AML 計算的虛擬機映射 - 僅限視窗 VirtualMachineImage 虛擬機鏡像
vmPriority 虛擬機優先順序 “專注”
“低優先順序”
vmSize 虛擬機大小 字串

已分配使用者

名字 描述 價值
物件ID 使用者的 AAD 物件識別碼。 字串 (必要)
租戶ID 使用者的 AAD 租使用者識別碼。 字串 (必要)

Compute

名字 描述 價值
computeLocation 基礎計算的位置 字串
computeType 將 類型設定為 'AKS',AKS。 針對 AmlCompute 類型設定為 'AmlCompute',AmlCompute。 將 類型設定為 'ComputeInstance' ComputeInstance。 針對 dataFactory 類型 設定為 'DataFactory',。 針對 dataLakeAnalytics 類型 設定為 'DataLakeAnalytics',。 針對 Databricks 類型 設定為 'Databricks',。 針對 HDInsight 類型設定為 『HDInsight』,。 針對 virtualMachine 類型設定為 'VirtualMachine',。 'AKS'
“AmlCompute”
“計算實例”
“Databricks”
“數據工廠”
“DataLakeAnalytics”
“HDInsight”
'VirtualMachine' (必要)
描述 機器學習 計算的描述。 字串
資源ID 基礎計算的 ARM 資源識別碼 字串

計算實例

名字 描述 價值
computeType 計算的類型 'ComputeInstance' (必要)
性能 計算實例屬性 ComputeInstanceProperties

ComputeInstanceProperties

名字 描述 價值
applicationSharingPolicy 的 在父工作區用戶之間共用此計算實例上應用程式的原則。 如果為 Personal,則只有建立者可以存取此計算實例上的應用程式。 當共用時,任何工作區使用者都可以根據指派的角色存取此實例上的應用程式。 “個人”
“共用”
computeInstanceAuthorizationType 計算實例授權類型。 可用的值為個人值(預設值)。 “個人”
personalComputeInstanceSettings 個人計算實例的設定。 PersonalComputeInstanceSettings
setupScripts 用來設定叢集的自定義腳本詳細數據。 設置腳本
ssh設置 指定 SSH 存取的原則和設定。 ComputeInstanceSshSettings
子網路 計算節點所屬的虛擬網路子網資源標識碼。 資源Id
vmSize 虛擬機大小 字串

ComputeInstanceSshSettings

名字 描述 價值
adminPublicKey 管理員公鑰 將 SSH rsa 公鑰檔案指定為字串。 使用 「ssh-keygen -t rsa -b 2048」 來產生 SSH 密鑰組。 字串
sshPublicAccess 公用 SSH 埠的狀態。 可能的值為:Disabled - 指出此實例上的公用 SSH 埠已關閉。 已啟用 - 指出如果適用,公用 SSH 埠已開啟且可依 VNet/子網原則存取。 “已禁用”
“已啟用”

Databricks

名字 描述 價值
computeType 計算的類型 'Databricks' (必要)
性能 DatabricksProperties

DatabricksProperties

名字 描述 價值
databricksAccessToken Databricks 存取令牌 字串

數據工廠

名字 描述 價值
computeType 計算的類型 'DataFactory' (必要)

DataLakeAnalytics

名字 描述 價值
computeType 計算的類型 'DataLakeAnalytics' (必要)
性能 DataLakeAnalytics屬性

DataLakeAnalytics屬性

名字 描述 價值
dataLakeStoreAccountName DataLake Store 帳戶名稱 字串

HDInsight

名字 描述 價值
computeType 計算的類型 'HDInsight' (必要)
性能 HDInsightProperties

HDInsightProperties

名字 描述 價值
位址 叢集主要節點的公用IP位址。 字串
管理員帳戶 叢集主要節點的管理員認證 VirtualMachineSshCredentials
sshPort 針對叢集主要節點上的SSH連線開啟埠。 整數 (int)

身份

名字 描述 價值
型別 識別類型。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned'
使用者指派的身份 使用者指派與資源相關聯的身分識別。 UserAssignedIdentities

PersonalComputeInstanceSettings

名字 描述 價值
已分配使用者 明確指派給個人計算實例的使用者。 已分配使用者

資源識別碼 (ResourceId)

名字 描述 價值
識別碼 資源的標識碼 字串 (必要)

資源標籤

名字 描述 價值

縮放設置

名字 描述 價值
maxNodeCount 要使用的節點數目上限 int (必要)
minNodeCount 要使用的節點數目下限 整數 (int)
nodeIdleTimeBeforeScaleDown 相應減少 amlCompute 之前的節點空閒時間。 此字串必須是 RFC 格式。 字串

文稿引用

名字 描述 價值
script參數 傳遞至腳本以執行的選擇性命令行自變數。 字串
文本數據 掛接磁碟區中的腳本位置。 字串
scriptSource (腳本源) 腳本的儲存來源:內嵌、工作區。 字串
超時 傳遞至逾時命令的選擇性時段。 字串

ScriptsToExecute 腳本

名字 描述 價值
creationScript 在布建計算期間只執行一次的腳本。 文稿引用
startupScript (啟動腳本) 每次機器啟動時都會執行的腳本。 文稿引用

設置腳本

名字 描述 價值
腳本 自訂設定文稿 ScriptsToExecute 腳本

SKU

名字 描述 價值
名字 SKU 的名稱 字串
分層 基本或企業等 SKU 的階層 字串

SSL 設定

名字 描述 價值
證書 憑證數據 字串
cname (標準名稱) 憑證的 CNAME 字串
Key 索引鍵數據 字串
狀態 啟用或停用 SSL 以進行評分 '自動'
“已禁用”
“已啟用”

UserAccountCredentials (使用者帳戶憑證)

名字 描述 價值
管理者用戶名 可用來透過 SSH 連線到節點的系統管理員用戶帳戶名稱。 字串 (必要)
adminUserPassword 管理員用戶密碼 系統管理員用戶帳戶的密碼。 字串
adminUserSshPublicKey 系統管理員用戶帳戶的 SSH 公鑰。 字串

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

虛擬機

名字 描述 價值
computeType 計算的類型 'VirtualMachine' (必要)
性能 VirtualMachineProperties

VirtualMachineImage 虛擬機鏡像

名字 描述 價值
識別碼 虛擬機映像路徑 字串 (必要)

VirtualMachineProperties

名字 描述 價值
位址 虛擬機的公用IP位址。 字串
管理員帳戶 虛擬機的管理員認證 VirtualMachineSshCredentials
sshPort 針對SSH連線開啟埠。 整數 (int)
virtualMachineSize (虛擬機器大小) 虛擬機大小 字串

VirtualMachineSshCredentials

名字 描述 價值
密碼 系統管理員帳戶的密碼 字串
私有金鑰資料 私鑰資料 字串
publicKeyData 的 公鑰資料 字串
使用者名稱 系統管理員帳戶的用戶名稱 字串