Azure数据工厂: How to rename blob csv or text file in blob storage during copy or import?

标签 azure azure-active-directory azure-functions azure-sql-database

我的本​​地计算机中有一些名为“Hist_Firms202006221017.csv”的 csv 文件。 我需要将其上传到 Azure BLOB 中,并使用新名称“Hist_Firms”。 基本上我需要修剪 azure 管道的复制数据中的时间戳部分。 有人可以帮我提供示例和屏幕截图吗?

最佳答案

你可以引用我的步骤。我的文件位于 blob 存储中,具有相同的“Hist_Firms202006221017”: enter image description here

<强>1。使用Get Metadata获取文件名: enter image description here

<强>2。在复制事件中,与获取元数据相同的来源: enter image description here

<强>3。复制事件 Sink 数据集设置,添加参数“文件名”: enter image description here

<强>4。复制事件 Sink 设置:使用表达式构建新文件名“Hist_Firms”:

@concat(substring(activity('Get Metadata1').output.itemname,0,10),'.csv')

enter image description here

<强>5。运行管道: enter image description here

<强>6。文件检查: enter image description here

不同之处在于我的源数据集位于 Blob 存储中,请更改为您的文件位置。

希望这有帮助。

关于Azure数据工厂: How to rename blob csv or text file in blob storage during copy or import?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62789289/

相关文章:

owin - 调试 OWIN 身份验证中间件

Azure Function 消耗计划限制

azure - 与 PowerShell 并行部署多个 ARM 模板

Azure 应用服务 - 如何配置端口?

azure - AADSTS76020 : Azure AD SSO with Signin certificate cannot authenticate graph client

azure - 使用 powershell 将 Azure 订阅移至另一个租户

azure - 我们是否需要为我们的 Azure Function App 设置执行额外的安全措施(存储在 Key Vault 内)

c# - Azure 函数使用不正确的 DLL 版本

azure - AKS ISTIO 网关无法访问

oracle - ADF SQL 查询在日期周围使用单引号