Azure Functions lets you execute your code in a serverless environment without having to first create a VM or publish a web application.
Log in to Azure
Sign in to the Azure portal at https://portal.azure.com with your Azure account.
Create a function app
You must have a function app to host the execution of your functions. A function app lets you group functions as a logic unit for easier management, deployment, and sharing of resources.
Select the New button found on the upper left-hand corner of the Azure portal, then select Compute > Function App.
Use the function app settings as specified in the table below the image.
Select Create to provision and deploy the function app.
Go to resource groups to view your new function app.
Create an HTTP triggered function
Expand your new function app, then select the + button next to Functions, choose In-portal, and select Continue.
Choose WebHook + API and then select Create.
A function is created
Test the function
In your new function, click </> Get function URL at the top right, select default (Function key), and then click Copy.
Paste the function URL into your browser’s address bar. Add the query string value &name=<yourname> to the end of this URL and press the Enter key on your keyboard to execute the request. You should see the response returned by the function displayed in the browser.
The request URL includes a key that is required, by default, to access your function over HTTP.
When your function runs, trace information is written to the logs. To see the trace output from the previous execution, return to your function in the portal and click the arrow at the bottom of the screen to expand the Logs.