MrLooquer Azure

Configure your Azure account in minutes to start monitoring your infrastructure with MrLooquer

Steps and requirements

Steps to configure and integrate your Azure account with MrLooquer:

  1. Create a Function App

  2. Deploy code in your Function App

  3. Get keys and configure environment variables

  4. Create Alert in Monitor

You need to have a MrLooquer account https://auth.mrlooquer.com/

Create function app:

Go to function-app section in Azure and add new function app

Now, you can choose to deploy the function using docker image o deploying the source code.

Set the OS to Linux and Publish to Docker Image

Click on "Configure container" to select the docker image.

Click on "Docker Hub"

And complete the 'Image and optional tag' field with: mrlooquer/rating-azure-function:1.0.0

Click on "Apply" changes and after, click on "Create" and your function is already created

Copy the function's url because you need it later

Get keys and configure environment variables

Get Azure keys

Install Azure cli

curl -L https://aka.ms/InstallAzureCli | bash

Login on Azure cli

az login

Set subscription id

az account set --subscription "subsId"

Create keys

az ad sp create-for-rbac -n "name"

Get MrLooquer Keys

Login on MrLooquer Rating and go to "Settings" menu. Set a name and get the token.

Configure environment variables in function

Go to application settings

Now configure the next environment variables:

AzureWebJobsSecretStorageType = Files

API_TOKEN -> Token obtained from MrLooquer Rating

RESOURCE = https://management.azure.com/

CLIENT_ID -> appId value obtained in the credentials azure step

CLIENT_SECRET -> password value obtained in the credentials azure step

TENANT_ID = Tenant value obtained in the credential azure step

Create Alert in monitor

Go to monitor page and click on "Alerts"

Create a new Alert Rule

Select subscription

Choose the following conditions

Signal Name: All Administrative operations

Level event: Informative

Depends on the method that you used to create the function, select the next step:

If you created it the function with docker image, continue with these steps:

Create a new Action Group and select "Webhook" as the type of action and complete the url field with the next value:

<url>/api/HttpTrigger

Replace <url> for the url that you copied in the last step on the "create function app" section.

Click on "Accept".

Click on "Accept" again.

Click on "Create" and you are done!

Last updated