Microsoft.MachineLearningServices 工作區/數據存放區 2021-03-01-preview

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/datastores@2021-03-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    contents: {
      contentsType: 'string'
      // For remaining properties, see DatastoreContents objects
    }
    description: 'string'
    isDefault: bool
    linkedInfo: {
      linkedId: 'string'
      linkedResourceName: 'string'
      origin: 'Synapse'
    }
    properties: {
    tags: {}
    {customized property}: 'string'
  }
}

DatastoreContents 物件

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

針對 AzureBlob,請使用:

  contentsType: 'AzureBlob'
  accountName: 'string'
  containerName: 'string'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint: 'string'
  protocol: 'string'

針對 AzureDataLakeGen1,請使用:

  contentsType: 'AzureDataLakeGen1'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  storeName: 'string'

針對 AzureDataLakeGen2,請使用:

  contentsType: 'AzureDataLakeGen2'
  accountName: 'string'
  containerName: 'string'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint: 'string'
  protocol: 'string'

針對 AzureFile,請使用:

  contentsType: 'AzureFile'
  accountName: 'string'
  containerName: 'string'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint: 'string'
  protocol: 'string'

針對 AzurePostgreSql,請使用:

  contentsType: 'AzurePostgreSql'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  databaseName: 'string'
  enableSSL: bool
  endpoint: 'string'
  portNumber: int
  serverName: 'string'

針對 AzureSqlDatabase,請使用:

  contentsType: 'AzureSqlDatabase'
  credentials: {
    credentialsType: 'string'
    // For remaining properties, see DatastoreCredentials objects
  }
  databaseName: 'string'
  endpoint: 'string'
  portNumber: int
  serverName: 'string'

針對 GlusterFs,請使用:

  contentsType: 'GlusterFs'
  serverAddress: 'string'
  volumeName: 'string'

DatastoreCredentials 物件

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

針對 AccountKey,請使用:

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

針對 憑證,請使用:

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

針對 None,請使用:

  credentialsType: 'None'
  secrets: {
    secretsType: 'string'
  }

針對 Sas,請使用:

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

針對 ServicePrincipal,請使用:

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

針對 sqlAdmin,請使用:

  credentialsType: 'SqlAdmin'
  secrets: {
    password: 'string'
    secretsType: 'string'
  }
  userId: 'string'

屬性值

workspaces/datastores

名字 描述 價值
名字 資源名稱

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

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

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

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

DatastoreProperties

名字 描述 價值
內容 [必要]數據存放區記憶體內容的參考。 DatastoreContents (必要)
描述 資產描述文字。 字串
isDefault 此資料存放區是否為工作區的預設值。 bool
linkedInfo 如果連結,則為數據存放區來源的相關信息。 LinkedInfo
性能 資產屬性字典。 DatastoreProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
{自定義屬性} 字串

DatastoreContents

名字 描述 價值
contentsType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile
AzurePostgreSql
AzureSqlDatabase
GlusterFs (必要)

AzureBlobContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

DatastoreCredentials

名字 描述 價值
credentialsType 設定物件類型 AccountKey
憑證

Sas
ServicePrincipal
SqlAdmin (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

CertificateDatastoreCredentials

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

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

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

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

CertificateDatastoreSecrets

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

NoneDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'None' (必要)
秘密 空白/無數據存放區秘密。 NoneDatastoreSecrets

NoneDatastoreSecrets

名字 描述 價值
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'None'
'Sas'
'ServicePrincipal'
'SqlAdmin' (必要)

SasDatastoreCredentials

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

SasDatastoreSecrets

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

ServicePrincipalDatastoreCredentials

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

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

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

ServicePrincipalDatastoreSecrets

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

SqlAdminDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'SqlAdmin' (必要)
秘密 SQL 資料庫秘密。 SqlAdminDatastoreSecrets
userId [必要]SQL 資料庫用戶名稱。 字串 (必要)

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

SqlAdminDatastoreSecrets

名字 描述 價值
密碼 SQL 資料庫密碼。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'None'
'Sas'
'ServicePrincipal'
'SqlAdmin' (必要)

AzureDataLakeGen1Contents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen1' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
storeName [必要]Azure Data Lake Store 名稱。 字串 (必要)

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

AzureDataLakeGen2Contents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzureFileContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzurePostgreSqlContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzurePostgreSql' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
enableSSL Azure PostgreSQL 伺服器是否需要 SSL。 bool
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

AzureSqlDatabaseContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzureSqlDatabase' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

GlusterFsContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'GlusterFs' (必要)
serverAddress [必要]GlusterFS 伺服器位址 (可以是 IP 位址或伺服器名稱)。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
volumeName [必要]GlusterFS 磁碟區名稱。 字串 (必要)

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

LinkedInfo

名字 描述 價值
linkedId 鏈接的服務標識碼。 字串
linkedResourceName 鏈接的服務資源名稱。 字串
起源 連結服務的類型。 'Synapse'

快速入門範本

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

範本 描述
使用多個數據集建立 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": "2021-03-01-preview",
  "name": "string",
  "properties": {
    "contents": {
      "contentsType": "string"
      // For remaining properties, see DatastoreContents objects
    },
    "description": "string",
    "isDefault": "bool",
    "linkedInfo": {
      "linkedId": "string",
      "linkedResourceName": "string",
      "origin": "Synapse"
    },
    "properties": {
    "tags": {},
    "{customized property}": "string"
  }
}

DatastoreContents 物件

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

針對 AzureBlob,請使用:

  "contentsType": "AzureBlob",
  "accountName": "string",
  "containerName": "string",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "endpoint": "string",
  "protocol": "string"

針對 AzureDataLakeGen1,請使用:

  "contentsType": "AzureDataLakeGen1",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "storeName": "string"

針對 AzureDataLakeGen2,請使用:

  "contentsType": "AzureDataLakeGen2",
  "accountName": "string",
  "containerName": "string",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "endpoint": "string",
  "protocol": "string"

針對 AzureFile,請使用:

  "contentsType": "AzureFile",
  "accountName": "string",
  "containerName": "string",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "endpoint": "string",
  "protocol": "string"

針對 AzurePostgreSql,請使用:

  "contentsType": "AzurePostgreSql",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "databaseName": "string",
  "enableSSL": "bool",
  "endpoint": "string",
  "portNumber": "int",
  "serverName": "string"

針對 AzureSqlDatabase,請使用:

  "contentsType": "AzureSqlDatabase",
  "credentials": {
    "credentialsType": "string"
    // For remaining properties, see DatastoreCredentials objects
  },
  "databaseName": "string",
  "endpoint": "string",
  "portNumber": "int",
  "serverName": "string"

針對 GlusterFs,請使用:

  "contentsType": "GlusterFs",
  "serverAddress": "string",
  "volumeName": "string"

DatastoreCredentials 物件

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

針對 AccountKey,請使用:

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

針對 憑證,請使用:

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

針對 None,請使用:

  "credentialsType": "None",
  "secrets": {
    "secretsType": "string"
  }

針對 Sas,請使用:

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

針對 ServicePrincipal,請使用:

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

針對 sqlAdmin,請使用:

  "credentialsType": "SqlAdmin",
  "secrets": {
    "password": "string",
    "secretsType": "string"
  },
  "userId": "string"

屬性值

workspaces/datastores

名字 描述 價值
類型 資源類型 'Microsoft.MachineLearningServices/workspaces/datastores'
apiVersion 資源 API 版本 '2021-03-01-preview'
名字 資源名稱

請參閱如何在JSON ARM 範本中設定子資源的名稱和類型。
字串 (必要)

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

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

DatastoreProperties

名字 描述 價值
內容 [必要]數據存放區記憶體內容的參考。 DatastoreContents (必要)
描述 資產描述文字。 字串
isDefault 此資料存放區是否為工作區的預設值。 bool
linkedInfo 如果連結,則為數據存放區來源的相關信息。 LinkedInfo
性能 資產屬性字典。 DatastoreProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
{自定義屬性} 字串

DatastoreContents

名字 描述 價值
contentsType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile
AzurePostgreSql
AzureSqlDatabase
GlusterFs (必要)

AzureBlobContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

DatastoreCredentials

名字 描述 價值
credentialsType 設定物件類型 AccountKey
憑證

Sas
ServicePrincipal
SqlAdmin (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

CertificateDatastoreCredentials

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

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

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

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

CertificateDatastoreSecrets

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

NoneDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'None' (必要)
秘密 空白/無數據存放區秘密。 NoneDatastoreSecrets

NoneDatastoreSecrets

名字 描述 價值
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'None'
'Sas'
'ServicePrincipal'
'SqlAdmin' (必要)

SasDatastoreCredentials

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

SasDatastoreSecrets

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

ServicePrincipalDatastoreCredentials

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

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

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

ServicePrincipalDatastoreSecrets

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

SqlAdminDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 'SqlAdmin' (必要)
秘密 SQL 資料庫秘密。 SqlAdminDatastoreSecrets
userId [必要]SQL 資料庫用戶名稱。 字串 (必要)

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

SqlAdminDatastoreSecrets

名字 描述 價值
密碼 SQL 資料庫密碼。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 'AccountKey'
'Certificate'
'None'
'Sas'
'ServicePrincipal'
'SqlAdmin' (必要)

AzureDataLakeGen1Contents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzureDataLakeGen1' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
storeName [必要]Azure Data Lake Store 名稱。 字串 (必要)

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

AzureDataLakeGen2Contents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzureFileContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzurePostgreSqlContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzurePostgreSql' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
enableSSL Azure PostgreSQL 伺服器是否需要 SSL。 bool
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

AzureSqlDatabaseContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'AzureSqlDatabase' (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

GlusterFsContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 'GlusterFs' (必要)
serverAddress [必要]GlusterFS 伺服器位址 (可以是 IP 位址或伺服器名稱)。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
volumeName [必要]GlusterFS 磁碟區名稱。 字串 (必要)

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

LinkedInfo

名字 描述 價值
linkedId 鏈接的服務標識碼。 字串
linkedResourceName 鏈接的服務資源名稱。 字串
起源 連結服務的類型。 'Synapse'

快速入門範本

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

範本 描述
使用多個數據集建立 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@2021-03-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      contents = {
        contentsType = "string"
        // For remaining properties, see DatastoreContents objects
      }
      description = "string"
      isDefault = bool
      linkedInfo = {
        linkedId = "string"
        linkedResourceName = "string"
        origin = "Synapse"
      }
      properties = {
      tags = {}
      {customized property} = "string"
    }
  })
}

DatastoreContents 物件

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

針對 AzureBlob,請使用:

  contentsType = "AzureBlob"
  accountName = "string"
  containerName = "string"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint = "string"
  protocol = "string"

針對 AzureDataLakeGen1,請使用:

  contentsType = "AzureDataLakeGen1"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  storeName = "string"

針對 AzureDataLakeGen2,請使用:

  contentsType = "AzureDataLakeGen2"
  accountName = "string"
  containerName = "string"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint = "string"
  protocol = "string"

針對 AzureFile,請使用:

  contentsType = "AzureFile"
  accountName = "string"
  containerName = "string"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  endpoint = "string"
  protocol = "string"

針對 AzurePostgreSql,請使用:

  contentsType = "AzurePostgreSql"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  databaseName = "string"
  enableSSL = bool
  endpoint = "string"
  portNumber = int
  serverName = "string"

針對 AzureSqlDatabase,請使用:

  contentsType = "AzureSqlDatabase"
  credentials = {
    credentialsType = "string"
    // For remaining properties, see DatastoreCredentials objects
  }
  databaseName = "string"
  endpoint = "string"
  portNumber = int
  serverName = "string"

針對 GlusterFs,請使用:

  contentsType = "GlusterFs"
  serverAddress = "string"
  volumeName = "string"

DatastoreCredentials 物件

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

針對 AccountKey,請使用:

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

針對 憑證,請使用:

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

針對 None,請使用:

  credentialsType = "None"
  secrets = {
    secretsType = "string"
  }

針對 Sas,請使用:

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

針對 ServicePrincipal,請使用:

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

針對 sqlAdmin,請使用:

  credentialsType = "SqlAdmin"
  secrets = {
    password = "string"
    secretsType = "string"
  }
  userId = "string"

屬性值

workspaces/datastores

名字 描述 價值
類型 資源類型 “Microsoft.MachineLearningServices/workspaces/datastores@2021-03-01-preview”
名字 資源名稱 字串 (必要)

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

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

DatastoreProperties

名字 描述 價值
內容 [必要]數據存放區記憶體內容的參考。 DatastoreContents (必要)
描述 資產描述文字。 字串
isDefault 此資料存放區是否為工作區的預設值。 bool
linkedInfo 如果連結,則為數據存放區來源的相關信息。 LinkedInfo
性能 資產屬性字典。 DatastoreProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
{自定義屬性} 字串

DatastoreContents

名字 描述 價值
contentsType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile
AzurePostgreSql
AzureSqlDatabase
GlusterFs (必要)

AzureBlobContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

DatastoreCredentials

名字 描述 價值
credentialsType 設定物件類型 AccountKey
憑證

Sas
ServicePrincipal
SqlAdmin (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

CertificateDatastoreCredentials

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

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

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

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

CertificateDatastoreSecrets

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

NoneDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “None” (必要)
秘密 空白/無數據存放區秘密。 NoneDatastoreSecrets

NoneDatastoreSecrets

名字 描述 價值
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“Certificate”
“None”
“Sas”
“ServicePrincipal”
“SqlAdmin” (必要)

SasDatastoreCredentials

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

SasDatastoreSecrets

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

ServicePrincipalDatastoreCredentials

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

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

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

ServicePrincipalDatastoreSecrets

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

SqlAdminDatastoreCredentials

名字 描述 價值
credentialsType [必要]用來向記憶體進行驗證的認證類型。 “SqlAdmin” (必要)
秘密 SQL 資料庫秘密。 SqlAdminDatastoreSecrets
userId [必要]SQL 資料庫用戶名稱。 字串 (必要)

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

SqlAdminDatastoreSecrets

名字 描述 價值
密碼 SQL 資料庫密碼。 字串
secretsType [必要]用來向記憶體進行驗證的認證類型。 “AccountKey”
“Certificate”
“None”
“Sas”
“ServicePrincipal”
“SqlAdmin” (必要)

AzureDataLakeGen1Contents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 “AzureDataLakeGen1” (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
storeName [必要]Azure Data Lake Store 名稱。 字串 (必要)

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

AzureDataLakeGen2Contents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzureFileContents

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

約束:
Pattern = [a-zA-Z0-9_]
containerName [必要]儲存體帳戶容器名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
端點 [必要]記憶體帳戶的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
協定 [必要]用來與記憶體帳戶通訊的通訊協定。 字串 (必要)

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

AzurePostgreSqlContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 “AzurePostgreSql” (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
enableSSL Azure PostgreSQL 伺服器是否需要 SSL。 bool
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

AzureSqlDatabaseContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 “AzureSqlDatabase” (必要)
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
databaseName [必要]Azure SQL 資料庫名稱。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
端點 [必要]資料庫的 Azure 雲端端點。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
portNumber [必要]Azure SQL Server 連接埠。 int (必要)
serverName [必要]Azure SQL 伺服器名稱。 字串 (必要)

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

GlusterFsContents

名字 描述 價值
contentsType [必要]備份數據存放區的記憶體類型。 “GlusterFs” (必要)
serverAddress [必要]GlusterFS 伺服器位址 (可以是 IP 位址或伺服器名稱)。 字串 (必要)

約束:
Pattern = [a-zA-Z0-9_]
volumeName [必要]GlusterFS 磁碟區名稱。 字串 (必要)

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

LinkedInfo

名字 描述 價值
linkedId 鏈接的服務標識碼。 字串
linkedResourceName 鏈接的服務資源名稱。 字串
起源 連結服務的類型。 “Synapse”