Azure Monitor
Azure Monitor is a comprehensive solution for collecting, analyzing, and acting on telemetry from cloud and on-premises environments to maximize the performance and availability of applications.
Configuration
Name | Type | Description |
---|---|---|
tenant_id |
string |
Tenant ID |
client_id |
string |
Client ID. An application needs to be created in the Azure Portal and assigned relevant permissions. Its Client ID should then be used in this configuration. |
client_secret |
string |
Client Secret associated with the registered application. Admin Consent has to be granted to the application for it to work. |
Actions
[BETA] Query Azure Monitor Logs
Execute an Analytics query
Arguments
Name | Type | Description |
---|---|---|
workspace_id |
string |
Workspace ID to search in |
query |
string |
Query |
from_date |
string |
Get data after this timestamp |
to_date |
string |
Get data before or at this timestamp |
timeout |
integer |
The maximum time, in seconds, the query should be processed in (default 300s) |
Outputs
Name | Type | Description |
---|---|---|
data |
array |
Query results |
Set up
How to configure Azure Monitor Logs module
Create an Azure application
- On the Azure Portal, in the search bar, go to
App registrations
- Click
+ New registration
- Type a name
- Select
Accounts in this organizational directory only
option as account type - Click
Register
- From the
Overview
page, copyApplication (client) ID
andDirectory (tenant) ID
Create a client secret
- Go to
Manage
>Certificates & secrets
- Click
+ New client secret
- Type a description and select the desired expiration period
- Click
Add
- Copy the
Value
of the client secret
Add role to the APP
- In the search bar, go to
Subscriptions
- Click on one of your subscriptions
- On the right panel, Click
Access control (IAM)
- Click
+ Add
>Add role assignment
- In the
job function roles
sub-tab, search forLog Analytics Reader
and select it - Click
Next
- Select
User, group or service principal
as access - Click
+ Select members
- Type the name of the Azure application created previously, select it and click
Select
- Click
Review + assign
Extra
Module Azure Monitor
v0.1.1