标签: python powershell azure-functions azure-data-factory azure-function-app
我想将一个文件夹的数据从特定的Blob存储复制到另一Blob存储。
我想在Azure函数中编写python代码以复制特定文件夹的数据,我也想编写python代码将热层文件转换为存档层blob存储。
请向我建议执行此操作的代码。
答案 0 :(得分:0)
使用此命令复制blob:
https://docs.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobclient?view=azure-python#start-copy-from-url-source-url--metadata-none--incremental-copy-false----kwargs-
使用这些设置层级:
https://docs.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobclient?view=azure-python#set-premium-page-blob-tier-premium-page-blob-tier----kwargs-
https://docs.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobclient?view=azure-python#set-standard-blob-tier-standard-blob-tier----kwargs-