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'
    }
    tags: {}
    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'

針對 None,請使用:

  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

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

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

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

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

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

DatastoreProperties

名字 描述 價值
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
描述 資產描述文字。 字串
性能 資產屬性字典。 ResourceBaseProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile (必要)

DatastoreCredentials

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

Sas
ServicePrincipal (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

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}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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'
'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
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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'
'Sas'
'ServicePrincipal' (必要)

ResourceBaseProperties

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

AzureBlobDatastore

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

AzureDataLakeGen1Datastore

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

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

AzureDataLakeGen2Datastore

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

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

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

AzureFileDatastore

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

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

約束:
Pattern = [a-zA-Z0-9_]
協定 用來與記憶體帳戶通訊的通訊協定。 字串
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"
    },
    "tags": {},
    "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"

針對 None,請使用:

  "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'
名字 資源名稱

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

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

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

DatastoreProperties

名字 描述 價值
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
描述 資產描述文字。 字串
性能 資產屬性字典。 ResourceBaseProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile (必要)

DatastoreCredentials

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

Sas
ServicePrincipal (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

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}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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'
'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
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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'
'Sas'
'ServicePrincipal' (必要)

ResourceBaseProperties

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

AzureBlobDatastore

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

AzureDataLakeGen1Datastore

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

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

AzureDataLakeGen2Datastore

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

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

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

AzureFileDatastore

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

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

約束:
Pattern = [a-zA-Z0-9_]
協定 用來與記憶體帳戶通訊的通訊協定。 字串
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"
      }
      tags = {}
      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"

針對 None,請使用:

  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”
名字 資源名稱 字串 (必要)

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

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

DatastoreProperties

名字 描述 價值
憑據 [必要]帳戶認證。 DatastoreCredentials (必要)
描述 資產描述文字。 字串
性能 資產屬性字典。 ResourceBaseProperties
標籤 標記字典。 標記可以新增、移除和更新。 物件
datastoreType 設定物件類型 AzureBlob
AzureDataLakeGen1
AzureDataLakeGen2
AzureFile (必要)

DatastoreCredentials

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

Sas
ServicePrincipal (必要)

AccountKeyDatastoreCredentials

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

AccountKeyDatastoreSecrets

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

CertificateDatastoreCredentials

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

約束:
最小長度 = 36
最大長度 = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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”
“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
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
resourceUrl 服務主體可以存取的資源。 字串
秘密 [必要]服務主體秘密。 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”
“Sas”
“ServicePrincipal” (必要)

ResourceBaseProperties

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

AzureBlobDatastore

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

AzureDataLakeGen1Datastore

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

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

AzureDataLakeGen2Datastore

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

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

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

AzureFileDatastore

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

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

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