MrLooquer Docs (ES)
  • Home
  • Modulos
    • Mail
      • DMARC
      • SPF
      • VRFY
      • EXPN
      • STARTTLS
  • Salud
  • Integrations
    • MrLooquer Azure
    • MrLooquer Amazon
    • MrLooquer GCP
  • API
    • Swagger Doc
  • Datasheets
    • MrLooquer Rating
  • Recursos
    • Recursos
Powered by GitBook
On this page
  • Steps and requirements
  • Create function app:
  • Get keys and configure environment variables
  • Create Alert in monitor
  1. Integrations

MrLooquer Azure

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

PreviousSaludNextMrLooquer Amazon

Last updated 2 years ago

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 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

Set the stack language to Javascript and the OS to Windows

Click on "Create" and your function is already created

Deploy code in your Function App

Deploy function in azure:

npm install -g azure-functions-core-tools

Clone MrLooquer repository

git clone https://github.com/mrlooquer/mrlooquer-rating-azure

Install libraries

npm install

In the directory of the code, execute the next command: (replace <nameFunctionApp> for the name of you functionApp)

func azure functionapp publish <nameFunctionApp>

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

Configure environment variables in function

Go to application settings

Now configure the next environment variables:

AzureWebJobsSecretStorageType = Files

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

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.

If you created it the function with source code, continue with these steps:

Create a new Action Group and select "Azure Functions" as the type of action and select the function we created in previous step

Click on "Accept".

Click on "Accept" again.

Click on "Create" and you are done!

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

API_TOKEN -> obtained from MrLooquer Rating

Go to and click on "Alerts"

MrLooquer Rating
Token
monitor page
section