Azure Function App
  • 04 Sep 2023
  • 4 Minutes to read
  • Dark
    Light
  • PDF

Azure Function App

  • Dark
    Light
  • PDF

Article Summary

Azure Function

Operations

Users can enable and disable an Azure Function by clicking the respective options.

Function enable.png

Test Function

Azure Functions can be made to test run to view the status code and response using Serverless360.

  1. Select the Request method
  2. Provide a message body
  3. Custom headers and Query parameters can also be included
  4. Click Run

For example, to test an HTTP triggered Function, the user can select the request method, say GET or POST and add Headers, Query parameters, and Message body. After providing the details, a test run can be made, and the response and its status code will be displayed.

test function.PNG

Manage Keys

Keys provide default security mechanisms, and keys can be created at the Function level in Azure Functions.

If a key is created for a Function, then the Function expects the key as a header to authorize any HTTP request. If no key is created, no key is required for the HTTP requests to get authorized.

Serverless360 provides the capability to manage keys at the Function level. These keys are scoped to the function and can be used to access the function.

Perform the following steps to add a new key:

  1. Click the New function key
  2. Provide a key name and its value
  3. Click Create

The existing keys can be modified and deleted by using the respective icons.

Manage keys.PNG

Invoke Triggers

Azure Function supports triggers like HTTP, Service Bus Queue, Timer, etc. There may be scenarios where an invocation of the Function fails, and the user needs to reinvoke it.

There is no possibility to do it apart from posting the message of the failed invocation to the Trigger of the Function (this is not feasible in Timer triggered Function).

Serverless360 can invoke the Function by sending a message to the Trigger. Users can achieve this by providing the Trigger details in Invoke Function screen and by sending the message.

For example, if the Function is a Service Bus Queue triggered, the user can provide the Queue connection details and post the message. The Triggers supported in Serverless360 are Service Bus Queue, Service Bus Topic, Event Grid, and HTTP.

Invoke trigger.gif

Invocation Logs

  • Access to the invocation logs of Azure Functions is a significant capability provided by Serverless360 in terms of Azure Function App management.

  • The logs can be filtered by selecting one of the following states: Succeeded, Failed.

  • The invocation detail contains the following information: Invocation date, Message, and Log level.

Invocation logs.gif

Resource Dashboard

  • The application insight resource created when deploying the Azure Function resource in the Azure portal must be associated with the same Business Application to use the resource dashboard for Azure Function resources.

Azure Function dashboard.png

  • A set of default queries is available to create dashboard widgets using the associated application insight.

  • The count chart type is not supported for the Azure Function resource dashboard.

Azure Function resource dashboard widgets can only be created using the application insight resource deployed alongside the Azure function deployment. The creation of dashboard widgets will restrict access to additional application insight resources.

Monitoring

Function app.gif

State Monitoring

  1. Navigate to Azure Function -> Monitoring
  2. Configure threshold value for the state of the function to determine the health state
  3. Click Save

The monitoring rule will be saved for Azure Function, and the monitoring state will be reflected after every monitoring cycle.

Instance Monitoring

  1. Navigate to Azure Function -> Monitoring
  2. Configure threshold value for the Instance of the function to determine the health state
  3. Click Save

The Instance monitoring rule will be saved for Azure Function, and the monitoring state will be reflected after every monitoring cycle.

Quotas Monitoring

  1. Navigate to Azure Function -> Monitoring
  2. Configure threshold value for the quotas of the function to determine the health state
  3. Click Save

The Quotas monitoring rule will be saved for Azure Function, and the monitoring state will be reflected after every monitoring cycle.

Failure Monitoring

  1. Navigate to Azure Function -> Monitoring
  2. Select Failed invocations under Failures and configure the threshold values
  3. Click Save

Failure monitoring will be initiated once the rule is saved, and the monitoring state will be reflected after every monitoring cycle.

Metrics Monitoring

  1. Navigate to Azure Function -> Monitoring
  2. Configure threshold value for the metrics of the function to determine the health state
  3. Click Save

The Metrics monitoring rule will be saved for Azure Function, and the monitoring state will be reflected after every monitoring cycle.

Properties

The Azure Function resource properties can be accessed within the resource by clicking Properties.

Function properties.gif

Azure Function App

Azure Function Apps can be set to Start, Stop or Restart by clicking the respective options.

Function app.png

Resource Dashboard

Users have access to a default Azure Function App Dashboard, which allows them to stay updated with real-time data through enhanced data visualization.

Function App Dashboard.png

Users are provided the following pre-defined Dashboard widgets, which can be customized to meet their needs.

1. Function Execution Count
2. Requests Count
3. HTTP Errors
4. Data In vs Data Out
5. Average Memory Working Set
6. IO Read vs. IO Write

Monitoring

  1. Navigate to Azure Function App -> Monitoring to configure the monitoring rules for Azure Function Apps
  2. Select the necessary monitoring metrics and configure the threshold values
  3. Click Save

The threshold values can also be provided with any metric name, defining the monitoring rule to be violated when the metric value configured at the threshold field is met.

Monitor rules.png

Monitoring rules will be saved for Azure Function App, and the monitoring state for the metrics will be reflected after every monitoring cycle.

Properties

The Azure Function App resource properties can be accessed within the resource by clicking Properties.

Function app - Properties.png


Was this article helpful?