Quick Links
In recent years, serverless has become one of the most talked-about technologies.
You merely pick the language you want to write in, deploy the code, and consume the results.
Provisioning Azure Function App
First, navigate to “Function App” within the Azure Portal.
Once there, choose the “Create Function App” button.
Enter in the values that make the most sense for your environment and needs.
In this example, we are going to use the PowerShell Core 7.0 runtime.
Because this is PowerShell, the runtime only supports Windows, despite PowerShell 7 being cross-platform.
Finally, we are using the Consumption plan for this Azure Function.
For Monitoring, we are going to create a new app Insights configuration and switch on the Monitoring option.
We are going to skip tagging in this article, and move on to Review & Create.
Once here, verify that everything looks accurate, then select “Create.”
Navigate to your App Function and pick the “Functions” pane.
Once there, select “Add” and choose the HTTP trigger template.
Here you will find an inline code editor that will allow you to test and run your function code.
The values below are the default configurations.
So, what can you do with Function Apps?
The modifications we are making to the default configuration are:
Click “Save” to make the changes.
We will Test/Run this code to verify that it works as expected.
As it’s possible for you to see from the output, the weather data is returned as expected.
Conclusion
Azure Functions is a powerful tool to create serverless functions in several languages.