共用方式為


Microsoft.MachineLearningServices 工作區/數據存放區 2022-05-01

Bicep 資源定義

工作區/資料存放區資源類型可以使用目標作業來部署:

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

資源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/datastores@2022-05-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    credentials: {
      credentialsType: 'string'
      // For remaining properties, see DatastoreCredentials objects
    }
    description: 'string'
    properties: {
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
    }
    tags: {
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
    }
    datastoreType: 'string'
    // For remaining properties, see DatastoreProperties objects
  }
}

DatastoreProperties 物件

設定 datastoreType 屬性以指定對象的類型。

針對 AzureBlob,請使用:

  datastoreType: 'AzureBlob'
  accountName: 'string'
  containerName: 'string'
  endpoint: 'string'
  protocol: 'string'
  serviceDataAccessAuthIdentity: 'string'

針對 AzureDataLakeGen1,請使用:

  datastoreType: 'AzureDataLakeGen1'
  serviceDataAccessAuthIdentity: 'string'
  storeName: 'string'

針對 AzureDataLakeGen2,請使用:

  datastoreType: 'AzureDataLakeGen2'
  accountName: 'string'
  endpoint: 'string'
  filesystem: 'string'
  protocol: 'string'
  serviceDataAccessAuthIdentity: 'string'

針對 AzureFile,請使用:

  datastoreType: 'AzureFile'
  accountName: 'string'
  endpoint: 'string'
  fileShareName: 'string'
  protocol: 'string'
  serviceDataAccessAuthIdentity: 'string'

DatastoreCredentials 物件

設定 credentialsType 屬性以指定對象的類型。

針對 AccountKey,請使用:

  credentialsType: 'AccountKey'
  secrets: {
    key: 'string'
    secretsType: 'string'
  }

針對 憑證,請使用:

  credentialsType: 'Certificate'
  authorityUrl: 'string'
  clientId: 'string'
  resourceUrl: 'string'
  secrets: {
    certificate: 'string'
    secretsType: 'string'
  }
  tenantId: 'string'
  thumbprint: 'string'

針對 [無],請使用:

  credentialsType: 'None'

針對 Sas,請使用:

  credentialsType: 'Sas'
  secrets: {
    sasToken: 'string'
    secretsType: 'string'
  }

針對 ServicePrincipal,請使用:

  credentialsType: 'ServicePrincipal'
  authorityUrl: 'string'
  clientId: 'string'
  resourceUrl: 'string'
  secrets: {
    clientSecret: 'string'
    secretsType: 'string'
  }
  tenantId: 'string'

屬性值

workspaces/datastores

名稱 描述
NAME 資源名稱

瞭解如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)

字元限制:數據存放區名稱最多 255 個字元

合法字元:
數據存放區名稱只包含小寫字母、數位和底線。
父系 (parent) 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱: 工作區
properties [必要]實體的其他屬性。 數據存放區屬性 (必要)

DatastoreProperties

名稱 描述
認證 [必要]帳戶認證。 數據存放區Credentials (必要)
description 資產描述文字。 字串
properties 資產屬性字典。 ResourceBaseProperties
tags 標記字典。 標記可以新增、移除和更新。 物件 (object)
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile (必要)

DatastoreCredentials

名稱 描述
credentialsType 設定物件類型 AccountKey
[MSSQLSERVER 的通訊協定內容]

Sas
需要 ServicePrincipal ()

AccountKeyDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey' (必要)
密碼 [必要]記憶體帳戶秘密。 AccountKeyDatastoreSecrets (必要)

AccountKeyDatastoreSecrets

名稱 描述
索引鍵 儲存體帳戶金鑰。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

CertificateDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 「憑證」 (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可存取的資源。 字串
密碼 [必要]服務主體秘密。 CertificateDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
thumbprint [必要]用於驗證之憑證的指紋。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]

CertificateDatastoreSecrets

名稱 描述
憑證 (certificate) 服務主體憑證。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

NoneDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 必要) ('None'

SasDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 必要) ('Sas'
密碼 [必要]記憶體容器秘密。 SasDatastoreSecrets (必要)

SasDatastoreSecrets

名稱 描述
sasToken 記憶體容器 SAS 令牌。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

ServicePrincipalDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'ServicePrincipal' (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 需要字串 ()

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
密碼 [必要]服務主體秘密。 ServicePrincipalDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 需要字串 ()

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$

ServicePrincipalDatastoreSecrets

名稱 描述
clientSecret 服務主體祕密。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

ResourceBaseProperties

名稱 描述
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串

AzureBlobDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 需要 『AzureBlob』 ()
accountName 儲存體帳戶名稱。 字串
containerName 儲存體帳戶容器名稱。 字串
端點 記憶體帳戶的 Azure 雲端端點。 字串
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

AzureDataLakeGen1Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen1' (必要)
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'
storeName [必要]Azure Data Lake Store 名稱。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]

AzureDataLakeGen2Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen2' (必要)
accountName [必要]儲存體帳戶名稱。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
filesystem [必要]Data Lake Gen2 檔案系統的名稱。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出要用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

AzureFileDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureFile' (必要)
accountName [必要]儲存體帳戶名稱。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
fileShareName [必要]數據存放區指向的 Azure 檔案共享名稱。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出要用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

快速入門範本

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

範本 描述
& 數據存放區建立具有多個數據集的 AML 工作區

部署至 Azure
此範本會建立具有多個數據集 & 數據存放區的 Azure Machine Learning 工作區。
建立 Azure ADLS 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 ADLS 資料存放區。
建立 Azure ADLS Gen2 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 ADLS Gen2 資料存放區。
建立 Blob 記憶體數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 Blob 記憶體資料存放區。
建立 Databricks 文件系統數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 Databricks 檔系統數據存放區。
建立檔案共享數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立檔案共用數據存放區。
建立 Azure MySQL 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 MySQL 資料存放區。
建立 Azure PostgreSQL 數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 PostgreSQL 資料存放區。
建立 Azure SQL 數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 SQL 資料存放區。

ARM 範本資源定義

工作區/資料存放區資源類型可以使用目標作業來部署:

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

資源格式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/datastores",
  "apiVersion": "2022-05-01",
  "name": "string",
  "properties": {
    "credentials": {
      "credentialsType": "string"
      // For remaining properties, see DatastoreCredentials objects
    },
    "description": "string",
    "properties": {
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string"
    },
    "tags": {
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string"
    },
    "datastoreType": "string"
    // For remaining properties, see DatastoreProperties objects
  }
}

DatastoreProperties 物件

設定 datastoreType 屬性以指定對象的類型。

針對 AzureBlob,請使用:

  "datastoreType": "AzureBlob",
  "accountName": "string",
  "containerName": "string",
  "endpoint": "string",
  "protocol": "string",
  "serviceDataAccessAuthIdentity": "string"

針對 AzureDataLakeGen1,請使用:

  "datastoreType": "AzureDataLakeGen1",
  "serviceDataAccessAuthIdentity": "string",
  "storeName": "string"

針對 AzureDataLakeGen2,請使用:

  "datastoreType": "AzureDataLakeGen2",
  "accountName": "string",
  "endpoint": "string",
  "filesystem": "string",
  "protocol": "string",
  "serviceDataAccessAuthIdentity": "string"

針對 AzureFile,請使用:

  "datastoreType": "AzureFile",
  "accountName": "string",
  "endpoint": "string",
  "fileShareName": "string",
  "protocol": "string",
  "serviceDataAccessAuthIdentity": "string"

DatastoreCredentials 物件

設定 credentialsType 屬性以指定對象的類型。

針對 AccountKey,請使用:

  "credentialsType": "AccountKey",
  "secrets": {
    "key": "string",
    "secretsType": "string"
  }

針對 [憑證],請使用:

  "credentialsType": "Certificate",
  "authorityUrl": "string",
  "clientId": "string",
  "resourceUrl": "string",
  "secrets": {
    "certificate": "string",
    "secretsType": "string"
  },
  "tenantId": "string",
  "thumbprint": "string"

針對 [無],請使用:

  "credentialsType": "None"

針對 Sas,請使用:

  "credentialsType": "Sas",
  "secrets": {
    "sasToken": "string",
    "secretsType": "string"
  }

針對 ServicePrincipal,請使用:

  "credentialsType": "ServicePrincipal",
  "authorityUrl": "string",
  "clientId": "string",
  "resourceUrl": "string",
  "secrets": {
    "clientSecret": "string",
    "secretsType": "string"
  },
  "tenantId": "string"

屬性值

workspaces/datastores

名稱 描述
類型 資源類型 'Microsoft.MachineLearningServices/workspaces/datastores'
apiVersion 資源 API 版本 '2022-05-01'
NAME 資源名稱

瞭解如何在 JSON ARM 範本中設定子資源的名稱和類型。
需要字串 ()

字元限制:數據存放區名稱最多 255 個字元

合法字元:
數據存放區名稱只包含小寫字母、數位和底線。
properties [必要]實體的其他屬性。 數據存放區屬性 (必要)

DatastoreProperties

名稱 描述
認證 [必要]帳戶認證。 DatastoreCredentials (必要)
description 資產描述文字。 字串
properties 資產屬性字典。 ResourceBaseProperties
tags 標記字典。 標記可以新增、移除和更新。 物件 (object)
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
需要 AzureFile ()

DatastoreCredentials

名稱 描述
credentialsType 設定物件類型 AccountKey
[MSSQLSERVER 的通訊協定內容]

Sas
需要 ServicePrincipal ()

AccountKeyDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey' (必要)
密碼 [必要]記憶體帳戶密碼。 AccountKeyDatastoreSecrets (必要)

AccountKeyDatastoreSecrets

名稱 描述
索引鍵 儲存體帳戶金鑰。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

CertificateDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 「憑證」 (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可存取的資源。 字串
密碼 [必要]服務主體秘密。 CertificateDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
thumbprint [必要]用於驗證之憑證的指紋。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]

CertificateDatastoreSecrets

名稱 描述
憑證 (certificate) 服務主體憑證。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

NoneDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 必要) ('None'

SasDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 必要) ('Sas'
密碼 [必要]記憶體容器秘密。 SasDatastoreSecrets (必要)

SasDatastoreSecrets

名稱 描述
sasToken 記憶體容器 SAS 令牌。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

ServicePrincipalDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'ServicePrincipal' (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可存取的資源。 字串
密碼 [必要]服務主體秘密。 ServicePrincipalDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$

ServicePrincipalDatastoreSecrets

名稱 描述
clientSecret 服務主體祕密。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'Sas'
'ServicePrincipal' (必要)

ResourceBaseProperties

名稱 描述
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串

AzureBlobDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 需要 『AzureBlob』 ()
accountName 儲存體帳戶名稱。 字串
containerName 儲存體帳戶容器名稱。 字串
端點 記憶體帳戶的 Azure 雲端端點。 字串
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

AzureDataLakeGen1Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen1' (必要)
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'
storeName [必要]Azure Data Lake 存放區名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]

AzureDataLakeGen2Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen2' (必要)
accountName [必要]儲存體帳戶名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
filesystem [必要]Data Lake Gen2 檔案系統的名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

AzureFileDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 'AzureFile' (必要)
accountName [必要]儲存體帳戶名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
fileShareName [必要]數據存放區所指向的 Azure 檔案共享名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 'None'
'WorkspaceSystemAssignedIdentity'
'WorkspaceUserAssignedIdentity'

快速入門範本

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

範本 描述
& 數據存放區建立具有多個數據集的 AML 工作區

部署至 Azure
此範本會建立具有多個數據集的 Azure Machine Learning 工作區,& 數據存放區。
建立 Azure ADLS 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 ADLS 資料存放區。
建立 Azure ADLS Gen2 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 ADLS Gen2 資料存放區。
建立 Blob 記憶體數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 Blob 記憶體資料存放區。
建立 Databricks 文件系統數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 Databricks 檔系統數據存放區。
建立檔案共享數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立檔案共用數據存放區。
建立 Azure MySQL 資料存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 MySQL 資料存放區。
建立 Azure PostgreSQL 數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 PostgreSQL 資料存放區。
建立 Azure SQL 數據存放區

部署至 Azure
此範本會在 Azure Machine Learning 工作區中建立 SQL 資料存放區。

Terraform (AzAPI 提供者) 資源定義

工作區/資料存放區資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/datastores@2022-05-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      credentials = {
        credentialsType = "string"
        // For remaining properties, see DatastoreCredentials objects
      }
      description = "string"
      properties = {
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
      }
      tags = {
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
      }
      datastoreType = "string"
      // For remaining properties, see DatastoreProperties objects
    }
  })
}

DatastoreProperties 物件

設定 datastoreType 屬性以指定對象的類型。

針對 AzureBlob,請使用:

  datastoreType = "AzureBlob"
  accountName = "string"
  containerName = "string"
  endpoint = "string"
  protocol = "string"
  serviceDataAccessAuthIdentity = "string"

針對 AzureDataLakeGen1,請使用:

  datastoreType = "AzureDataLakeGen1"
  serviceDataAccessAuthIdentity = "string"
  storeName = "string"

針對 AzureDataLakeGen2,請使用:

  datastoreType = "AzureDataLakeGen2"
  accountName = "string"
  endpoint = "string"
  filesystem = "string"
  protocol = "string"
  serviceDataAccessAuthIdentity = "string"

針對 AzureFile,請使用:

  datastoreType = "AzureFile"
  accountName = "string"
  endpoint = "string"
  fileShareName = "string"
  protocol = "string"
  serviceDataAccessAuthIdentity = "string"

DatastoreCredentials 物件

設定 credentialsType 屬性以指定對象的類型。

針對 AccountKey,請使用:

  credentialsType = "AccountKey"
  secrets = {
    key = "string"
    secretsType = "string"
  }

針對 [憑證],請使用:

  credentialsType = "Certificate"
  authorityUrl = "string"
  clientId = "string"
  resourceUrl = "string"
  secrets = {
    certificate = "string"
    secretsType = "string"
  }
  tenantId = "string"
  thumbprint = "string"

針對 [無],請使用:

  credentialsType = "None"

針對 Sas,請使用:

  credentialsType = "Sas"
  secrets = {
    sasToken = "string"
    secretsType = "string"
  }

針對 ServicePrincipal,請使用:

  credentialsType = "ServicePrincipal"
  authorityUrl = "string"
  clientId = "string"
  resourceUrl = "string"
  secrets = {
    clientSecret = "string"
    secretsType = "string"
  }
  tenantId = "string"

屬性值

workspaces/datastores

名稱 描述
類型 資源類型 “Microsoft.MachineLearningServices/workspaces/datastores@2022-05-01”
NAME 資源名稱 需要字串 ()

字元限制:數據存放區名稱最多 255 個字元

合法字元:
數據存放區名稱只包含小寫字母、數位和底線。
parent_id 此資源之父系的資源標識碼。 類型資源的標識碼: 工作區
properties [必要]實體的其他屬性。 數據存放區屬性 (必要)

DatastoreProperties

名稱 描述
認證 [必要]帳戶認證。 數據存放區Credentials (必要)
description 資產描述文字。 字串
properties 資產屬性字典。 ResourceBaseProperties
tags 標記字典。 標記可以新增、移除和更新。 物件 (object)
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile (必要)

DatastoreCredentials

名稱 描述
credentialsType 設定物件類型 AccountKey
[MSSQLSERVER 的通訊協定內容]

Sas
需要 ServicePrincipal ()

AccountKeyDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey” (必要)
密碼 [必要]記憶體帳戶秘密。 AccountKeyDatastoreSecrets (必要)

AccountKeyDatastoreSecrets

名稱 描述
索引鍵 儲存體帳戶金鑰。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“Certificate”
“Sas”
“ServicePrincipal” (必要)

CertificateDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 「憑證」 (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可存取的資源。 字串
密碼 [必要]服務主體秘密。 CertificateDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 字串 (必要)

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
thumbprint [必要]用於驗證之憑證的指紋。 字串 (必要)

約束:
模式 = [a-zA-Z0-9_]

CertificateDatastoreSecrets

名稱 描述
憑證 (certificate) 服務主體憑證。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“憑證”
“Sas”
“ServicePrincipal” (必要)

NoneDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “None” (必要)

SasDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “Sas” (必要)
密碼 [必要]記憶體容器秘密。 需要 SasDatastoreSecrets ()

SasDatastoreSecrets

名稱 描述
sasToken 記憶體容器 SAS 令牌。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“憑證”
“Sas”
“ServicePrincipal” (必要)

ServicePrincipalDatastoreCredentials

名稱 描述
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “ServicePrincipal” (必要)
authorityUrl 用於驗證的授權單位 URL。 字串
clientId [必要]服務主體用戶端識別碼。 需要字串 ()

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
密碼 [必要]服務主體秘密。 ServicePrincipalDatastoreSecrets (必要)
tenantId [必要]服務主體所屬租用戶的標識碼。 需要字串 ()

約束:
最小長度 = 36
最大長度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$

ServicePrincipalDatastoreSecrets

名稱 描述
clientSecret 服務主體祕密。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“憑證”
“Sas”
“ServicePrincipal” (必要)

ResourceBaseProperties

名稱 描述
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串
{自定義屬性} 字串

AzureBlobDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 “AzureBlob” (必要)
accountName 儲存體帳戶名稱。 字串
containerName 儲存體帳戶容器名稱。 字串
端點 記憶體帳戶的 Azure 雲端端點。 字串
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 "None"
“WorkspaceSystemAssignedIdentity”
“WorkspaceUserAssignedIdentity”

AzureDataLakeGen1Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 “AzureDataLakeGen1” (必要)
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 "None"
“WorkspaceSystemAssignedIdentity”
“WorkspaceUserAssignedIdentity”
storeName [必要]Azure Data Lake 存放區名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]

AzureDataLakeGen2Datastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 “AzureDataLakeGen2” (必要)
accountName [必要]儲存體帳戶名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
filesystem [必要]Data Lake Gen2 檔案系統的名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出用來驗證客戶記憶體之服務數據存取權的身分識別。 "None"
“WorkspaceSystemAssignedIdentity”
“WorkspaceUserAssignedIdentity”

AzureFileDatastore

名稱 描述
datastoreType [必要]備份數據存放區的記憶體類型。 “AzureFile” (必要)
accountName [必要]儲存體帳戶名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
端點 記憶體帳戶的 Azure 雲端端點。 字串
fileShareName [必要]數據存放區所指向的 Azure 檔案共享名稱。 需要字串 ()

約束:
模式 = [a-zA-Z0-9_]
protocol 用來與記憶體帳戶通訊的通訊協定。 字串
serviceDataAccessAuthIdentity 指出要用來驗證客戶記憶體之服務數據存取權的身分識別。 "None"
“WorkspaceSystemAssignedIdentity”
“WorkspaceUserAssignedIdentity”