Introduction
Azure Functions is used for executing a small piece of code or “function” in a cloud and you pay only for the time your code executes. You can use a development language of your choice, such as C#, F#, PHP, Java etc. Some of the key features of Functions are - Choice of language, Pay-per-use pricing model, bring your own dependencies, integrated security, simplified integration, flexible development, and open-source. Please refer Azure Functions for more details. Refer to my previous articles below:
- How to create a simple Azure Function App using C#
- How to create Azure Function app to delete SharePoint Online list using CSOM
Azure Logic Apps is a fully managed integration Platform-as-a-Service which provides a way to automate the workflows and business process. You could easily integrate across different services in cloud and on-premise through connectors. Refer to my previous articles mentioned below:
- Create Blank Logic App
- Create Azure Logic App from template
- Add a condition to Azure Logic App.
- Add parameters to Azure Logic App
- How to send reminder emails for overdue tasks in SharePoint using Azure Logic App
In this article, you will see how to call Azure Functions in Logic Apps. I have created a custom list named “List Info” with “Title” field. Title field will contain the list name which will be deleted by the Azure Functions. I have already created an Azure function to delete SharePoint list. When a new item is created in List Info, Logic App will get triggered and execute the Azure function which will get the list name from the “List Info” list Title field and delete the respective list.
Azure Function Code








Ravi KhambhatiPosted Feb 19, 2020, 10:21 AM
Great article. In your example, you have hardcoded your user id and password in azure function. Could you please let me know the best practice for not added these details on function.