简体   繁体   English

如何访问通过 azure 文件共享上传到数据存储区的数据?

[英]How do i access data that has been uploaded to datastore via azure file share?

Uploaded a bunch of csvs to azure file share data store.将一堆 csv 上传到 azure 文件共享数据存储。 how can I access the data from the datastore in a script?如何在脚本中访问数据存储区中的数据?

#upload csv to datastore
datastore = ws.get_default_datastore()
path='path'
target=(datastore,path)
ds=Dataset.File.upload_directory(data_loacation,target,overwrite=True,show_progress = True)

You need to Create an Azure Files Datastore.您需要创建 Azure 文件数据存储。 Below is the sample code to create Azure Files Datastore.下面是创建 Azure 文件数据存储的示例代码。

from azure.ai.ml.entities import AzureFileDatastore
from azure.ai.ml import MLClient

ml_client = MLClient.from_config()

store = AzureFileDatastore(
    name="file-example",
    description="Datastore pointing to an Azure File Share.",
    account_name="mytestfilestore",
    file_share_name="my-share",
    credentials={
        "account_key": "XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxXXXXxxxxxXXxxxxxxXXXxXXX"
    },
)

ml_client.create_or_update(store)

For more information follow this Official documentation有关更多信息,请遵循此官方文档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何知道在 azure 文件共享中上传的文件的日期 - How can I know the dates of the files uploaded in azure file share 如何使用Bottle访问上传的文件? - How do I access an uploaded file with Bottle? 如何处理已使用Python 2.x从文件中读取的列表中的数据? - How do I manipulate data in a list that has been read in from a file using Python 2.x? 如何从python中找到在csv文件中输入的数据的平均值? - How do I find the mean of data that has been entered in a csv file from python? 在我的Python CGI脚本中,如何将用户通过表单输入的数据通过POST请求上传到磁盘上的文件保存到磁盘上? - In my Python CGI script, how do I save to disk a file uploaded via POST request of data entered by the user in a form? 如何手动处理上传的文件数据? - How do I deal with the uploaded file data manually? 如何通过socks 代理访问Azure blob 存储? - How do I access Azure blob storage via a socks proxy? 通过setuptools或distutils安装Python软件包后,如何访问可编辑的配置文件? - How to access an editable configuration file once a Python package has been installed via setuptools or distutils? 打开已在Flask中上传的文件 - Opening a file that has been uploaded in Flask 如何在创建实体之后但在将实体放入数据存储区之前添加/更改实体的父实体? - How can I add/change the parent of an entity after it has been created but before it is put in the Datastore?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM