DEV Community

Cover image for HOW TO CREATE AZURE FUNCTIONS APP
Olalekan Oladiran
Olalekan Oladiran

Posted on • Updated on

HOW TO CREATE AZURE FUNCTIONS APP

What is Azure Functions?

Azure Functions is a platform for serverless applications. It lets developers host executable business logic without the need to provision infrastructure. Azure Functions offers inherent scalability, with pricing based solely on the utilization of resources. The language you choose to create your function code in can be C#, Java, JavaScript, Python, or PowerShell. In order to include well-known libraries into your business logic, support for package managers such as NuGet and npm is also provided.

Steps involved in creating function app

  • Click create resource Image description
  • Search for function app in the market place Image description
  • Select the function app and click create Image description -Fill in the project details which include subscription and resource group Image description
  • In the instance details, only select .Net in the runtime stack Image description
  • Leave the operating system on default as Windows Image description
  • Leave the hosting as default also Image description
  • Click Review + create Image description
  • Click create after passing validation Image description
  • Wait for it to deploy Image description
  • Once deployment is complete select go to resource Image description
  • This will take you to function overview page Image description
  • Under function select create in azure portal to create a function Image description
  • Select HTTP Trigger under Templates; this means that the function will be tested over browser Image description
  • Click create Image description
  • After successfully creating a function Image description
  • Select get url Image description
  • Copy the url Image description
  • Open a new browser, paste the copied url and search Image description
  • To pass a name in the query string, add &name=Olalekan at the end of the copied url. Note that Olalekan can be any name. Image description

You can also test your function app by running the following code on CLI pane: curl "copied url"
Image description
It will ask you to pass a name in the query string and you do so by adding &name=Olalekan to the copied url just like the previous method.
Image description

Top comments (0)