Azure Cloud: What is Azure Function App? How to use it as tester?

Suman Tomer
4 min readApr 9, 2022
Install Visual Studio 2022

Azure Function is an set of instruction that is executed on specific event like HTTPS request or events occurring in Azure etc. You do not have to specify the provision or specify which server will host it! It is all taken care of by Azure services.
You just have to upload the set of instructions (Azure function) to your Organisation’s Azure account and your code is guaranteed to execute on the defined events for your code.

You can leverage Azure Functions to build HTTP-based API endpoints accessible by a wide range of applications. Azure Functions is scale-based and on-demand, so you pay only for the resources you consume.

As developers, you can find thousands of use cases. But as Automation QA engineer, I use Azure functions to create mocking API returning custom response(s)* so that I can preps my test automation in advance before developers can create real API and its workflow and get the delivery non-production environment. It helps me to do parallel development of my automated tests.

Prerequisites:
1. Visual Studio 2022 [Community]
2. Azure cloud Subscription

Steps :
1. Open Visual Studio and Create a function app project (called ‘MockAPI’) in C#.

Default Azure Function named Function1

2. Build the project successfully and right-click on the project and click “Publish…” button.

3. Select Azure option as shown

4. Select Azure Function App (Linux).

5. Sign in into your Azure subscription to be used for deployment of the Azure function.

7. Select the Subscription name if you have more than one in your Azure account and click on + sign to add Azure Function App Instance.

Add Azure Function App in your subscription.

8. Provide the following information for your new Azure App Instance.

9. Click on “Publish” button to allow.

You will see the success or failure of deployment of your Azure Function as shown below.

10. Go to Azure Resource Group for the project.

11. Copy the Get Function URL from the Function1 and fire it on web postman by passing the name query parameter too.

Copy the GetFunction URL

12. Open the Web postman and put the Azure Function URL into and click Send button and you should see the successful response.

Thanks for reading the article.

*I know there are many website which allows you to simply do same functionality without going into Azure cloud with so much detailed implementation. https://stoplight.io

--

--

Suman Tomer

Test Automation, QA Engineer, Azure Cloud, Helping woman who wants to learn testing and join industries