如果我尝试通过管道删除 data.csv 文件,它可以工作,但在我尝试删除文件夹时不起作用。
ADF 管道的 JSON 源代码。
我有贡献者、存储 blob 数据贡献者和存储帐户、贡献者访问权限
{
"name": "Delete files older than 30 days",
"properties": {
"description": "Please input a folder path as the parameter for this pipeline, and the pipeline will delete files which were last modified more than 30 days ago under the particular folder path.",
"activities": [
{
"name": "DeleteFiles",
"description": "Connect to your storage account to save the log file.",
"type": "Delete",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"dataset": {
"referenceName": "BinaryDatasetForDeleteActivity",
"type": "DatasetReference",
"parameters": {
"FolderPath": {
"value": "@pipeline().parameters.SourceFolder",
"type": "Expression"
},
"Directory": {
"value": "@pipeline().parameters.SourceDirectory",
"type": "Expression"
}
}
},
"logStorageSettings": {
"linkedServiceName": {
"referenceName": "linkedService1",
"type": "LinkedServiceReference"
},
"path": {
"value": "@pipeline().parameters.LoggingPath",
"type": "Expression"
}
},
"enableLogging": true,
"storeSettings": {
"type": "AzureBlobStorageReadSettings",
"recursive": true,
"wildcardFileName": "*"
}
}
}
],
"parameters": {
"SourceFolder": {
"type": "string",
"defaultValue": "ildatalakefs /"
},
"SourceDirectory": {
"type": "string",
"defaultValue": "Client1 / Staging / 3f1890d4-dd35-4130-baad-a1d39972ac99 / Landing/"
},
"LoggingPath": {
"type": "string",
"defaultValue": "loggingfolder/subfolder"
}
},
"annotations": [],
"lastPublishTime": "2021-04-26T22:54:14Z"
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
谢谢