MrLooquer Azure
Configure your Azure account in minutes to start monitoring your infrastructure with MrLooquer
Last updated
Configure your Azure account in minutes to start monitoring your infrastructure with MrLooquer
Last updated
Steps to configure and integrate your Azure account with MrLooquer:
Create a Function App
Deploy code in your Function App
Get keys and configure environment variables
Create Alert in Monitor
You need to have a MrLooquer account https://auth.mrlooquer.com/
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
Install Azure cli
Login on Azure cli
Set subscription id
Create keys
Login on MrLooquer Rating and go to "Settings" menu. Set a name and get the token.
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
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!