To copy files from SharePoint to Azure Blob Storage using Azure Logic Apps in Azure Data Factory, you can follow these steps:
- Navigate to the Azure portal and sign in with your Azure account.
- In the search bar, type "Logic Apps" and select the "Logic Apps" service.
- Click the "Add" button to create a new logic app.
- On the "Create logic app" blade, enter a name for your logic app and select a resource group.
- Click the "Create" button to create the logic app.
- In the logic app designer, click the "When a HTTP request is received" trigger to start the workflow.
- Add an "HTTP request" action by clicking the "New step" button and selecting the "Add an action" option.
- In the "Choose an action" blade, search for "HTTP" and select the "HTTP" action.
- In the "HTTP" action, enter the URL of the SharePoint file you want to copy and specify the HTTP method as "GET".
- Add a "Parse JSON" action by clicking the "New step" button and selecting the "Add an action" option.
- In the "Choose an action" blade, search for "Parse JSON" and select the "Parse JSON" action.
- In the "Parse JSON" action, select the output of the "HTTP" action as the content to be parsed and provide a sample JSON payload that matches the structure of the output. This will allow the logic app to parse the output of the "HTTP" action correctly.
- Add a "Create blob" action by clicking the "New step" button and selecting the "Add an action" option.
- In the "Choose an action" blade, search for "Create blob" and select the "Create blob" action.
- In the "Create blob" action, specify the name of the blob to be created and select the storage account and container where the blob will be stored.
- In the "Create blob" action, select the output of the "Parse JSON" action as the content of the blob.
- Click the "Save" button to save your logic app.
- After saving the logic app, you can trigger the logic app by sending an HTTP request to the logic app's URL. This will cause the logic app to execute the workflow and copy the file from SharePoint to Azure Blob Storage.
Alternatively, you can use Azure Data Factory to automate the execution of the logic app. To do this, you can create a pipeline in Azure Data Factory and add a "Logic App" activity to the pipeline. In the "Logic App" activity, you can specify the logic app that you created above and configure the input and output parameters for the logic app. You can then schedule the pipeline to run repeatedly or trigger it manually to copy the files from SharePoint to Azure Blob Storage.
Hey,
Can you ping me what the error is?
Another blog : https://www.thetechplatform.com/post/moving-files-from-sharepoint-to-azure-blob
And why not try directly via ADF only but leverage Logic app in between?