Trigger Function From synapse to load file to sharepoint

Maria Valek 80 Reputation points
2023-11-01T15:29:04.6333333+00:00

Hi,

I am in a need to build a powershell function to load files from data lake to sharepoint location. I would be following the article here https://sposcripts.com/how-to-upload-files-to-sharepoint-using-graph-api/?utm_content=cmp-true that uses graph API.

I will be triggering it from synapse pipeline and need to pass some parameters through (such as app-id, app secret, tenant, etc). How do I pass these through?

Would I use POST method and enter them in body, like below?

{Tenant = "m36xyz",

AppID = "exyz",

Secret = "e35xyz"}User's image

If so, how do I then assign the passed values to the variables/parameters in the function app so they can be used?

Thank you.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.