首页 > 解决方案 > 授予 Datastore.register_azure_blob_container 的工作区访问权限 - 文档?

问题描述

grant_workspace_access方法中的参数是否有任何文档Datastore.register_azure_blob_container我在SDK 文档中看到了它,但是当我尝试调用该服务时出现错误并且我不知道如何进行故障排除。

我得到的错误是:

ERROR - Registering datastore failed with a 400 error code and error message 
'Cannot create resource using Workspace MSI access token. Please make sure Administrator/ 
User Access Administrator grants the Contributor RBAC role for the workspace.

标签: azureazure-machine-learning-service

解决方案


Yes, the documentation page contains documentation for that parameter.

Grants Workspace Managed Identities (MSI) access to the user storage account, defaults to False. This should be set if the Storage account is in VNET. If set to True, we will use your identity to grant access to the user storage account. It may take a while for the granted access to reflect.

Did you set the grant_workspace_access parameter to True when you register the datastore?


推荐阅读