![](/img/trans.png)
[英]Writing data to datastore using jupyter notebook on Azure Ml studio
[英]creating datastore in azure ML studio in terraform
嘗試在 terraform 的 Azure ML 工作室中創建數據存儲:
resource "azureml_datastore" "output_datastore" {
resource_group_name = var.resource_group_name
workspace_name = azurerm_machine_learning_workspace.AML.name
name = "outputdatastore"
storage_type = "AzureBlob"
storage_account_name = "bapstorageaccount945"
storage_container_name = "predictioncontainer"
auth {
credentials_type = "AccountKey"
account_key = "storage account primary key"
}
}
它拋出以下錯誤:
│ 錯誤:缺少必需的參數│ │ 參數“tenant_id”是必需的,但未設置。 ╵╷│錯誤:缺少必需的參數││參數“client_id”是必需的,但未設置。 ╵╷│錯誤:缺少必需的參數││參數“client_secret”是必需的,但未設置。 ╵╷│錯誤:缺少必需的參數││參數“subscription_id”是必需的,但未設置。
當我添加上述屬性時:
resource "azureml_datastore" "output_datastore" {
resource_group_name = var.resource_group_name
workspace_name = azurerm_machine_learning_workspace.AML.name
name = "outputdatastore"
storage_type = "AzureBlob"
storage_account_name = "bapstorageaccount945"
storage_container_name = "predictioncontainer"
auth {
credentials_type = "AccountKey"
tenant_id = "XXXX"
client_id = "Storage Account ID"
client_secret = "storage account primary key"
subscription_id = "XXXX"
account_key = "storage account primary key"
}
我收到以下錯誤:
│ Error: Unsupported argument
│
│ on MLStudio\main.tf line 74, in resource "azureml_datastore" "output_datastore":
│ 74: subscription_id = "XXXX"
│
│ An argument named "subscription_id" is not expected here.
有人可以幫我嗎?
缺少的 arguments 錯誤是針對provider
塊而不是針對資源塊的:
provider "azureml" {
client_id = "Storage Account ID"
client_secret = "storage account primary key"
tenant_id = "XXXX"
subscription_id = "XXXX"
}
您可以查看文檔以獲取更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.