Connectors Reference

Azure Log Analytics

Connect to your Azure Log Analytics workspace to run and visualize various Analytics queries.

 

Status: Preview

Tier: Premium

Version: 1.0.3

 

Actions:

Name

Summary

ListSubscriptions ()

List subscriptions

ListResourceGroups (string subscriptions)

List resource groups

ListWorkspaceNames (string subscriptions, string resourcegroups)

List workspaces

RunOmsQuery (string subscriptions, string resourcegroups, string workspaces, string query)

Run query and list results

ListArmQueryResultsSchema (string subscriptions, string resourcegroups, string workspaces, string query)

Get query schema

VisualizeOmsQuery (string subscriptions, string resourcegroups, string workspaces, string query, string visType)

Run query and visualize results

 

Triggers:

Name

Summary

 

Objects:

Name

Summary

Object

 

ResourceGroup

 

ResourceGroupListResult

 

Row

 

Subscription

 

SubscriptionListResult

 

Table

 

VisualizeResults

 

 

Actions:

ListSubscriptions

Summary: List subscriptions

Description: Gets a list of all the subscriptions to which the principal has access.

 

Syntax:

AzureLogAnalytics.ListSubscriptions ()

 

Returns:

          Type:SubscriptionListResult

          Description: Subscription list operation response.

 

ListResourceGroups

Summary: List resource groups

Description: Lists all the resource groups within the subscription.

 

Syntax:

AzureLogAnalytics.ListResourceGroups (string subscriptions)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

 

Returns:

          Type:ResourceGroupListResult

          Description: List of resource groups.

 

ListWorkspaceNames

Summary: List workspaces

Description: Lists all the resource groups within the resource group.

 

Syntax:

AzureLogAnalytics.ListWorkspaceNames (string subscriptions, string resourcegroups)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

 

Returns:

          Type:ResourceGroupListResult

          Description: List of resource groups.

 

RunOmsQuery

Summary: Run query and list results

Description: Runs the query and returns the result as a set of lines which can be iterated over in the following connectors.

 

Syntax:

AzureLogAnalytics.RunOmsQuery (string subscriptions, string resourcegroups, string workspaces, string query)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

workspaces

string

(Workspaces Name)

Select workspace

True

ListWorkspaceNames

query

string

 

 

True

 

Returns:

          Type:Table

 

ListArmQueryResultsSchema

Summary: Get query schema

Description: Gets the schema for a specific query.

 

Syntax:

AzureLogAnalytics.ListArmQueryResultsSchema (string subscriptions, string resourcegroups, string workspaces, string query)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

workspaces

string

(Workspaces Name)

Select workspace

True

ListWorkspaceNames

query

string

 

 

True

 

Returns:

          Type:Object

 

VisualizeOmsQuery

Summary: Run query and visualize results

Description: Returns the OMS query results as a chart of your choice.

 

Syntax:

AzureLogAnalytics.VisualizeOmsQuery (string subscriptions, string resourcegroups, string workspaces, string query, string visType)

 

Parameters:

Name

Type

Summary

Required

Related Action

subscriptions

string

(Subscription)

Select subscription

True

ListSubscriptions

resourcegroups

string

(Resource Group)

Select resource group

True

ListResourceGroups

workspaces

string

(Workspaces Name)

Select workspace

True

ListWorkspaceNames

query

string

 

 

True

visType

string

(Chart Type)Values: [Html Table, Pie Chart, Time Chart, Bar Chart]

Specify the resulting chart type

True

 

Returns:

          Type:VisualizeResults

 


 

Object

Summary:

Description:

 

          Properties:

Name

Type

Summary


 

ResourceGroup

Summary:

Description: Resource group information.

 

          Properties:

Name

Type

Summary

id

string

Id

The ID of the resource group (e.g. /subscriptions/XXX/resourceGroups/YYY).

name

string

Name

The Name of the resource group.

managedBy

string

Managed By

Id of the resource that manages this resource group.

tags

Tags

Tags

The tags attached to the resource group.

 

Tags

Summary: Tags

Description: The tags attached to the resource group.

 

          Properties:

Name

Type

Summary

 


 

ResourceGroupListResult

Summary:

Description: List of resource groups.

 

          Properties:

Name

Type

Summary

value

array of (ResourceGroup)

 

The list of resource groups.

nextLink

string

Next Link

The URL to get the next set of results.


 

Row

Summary:

Description:

 

          Properties:

Name

Type

Summary


 

Subscription

Summary:

Description: Subscription information.

 

          Properties:

Name

Type

Summary

id

string

Id

The fully qualified Id. For example, /subscriptions/00000000-0000-0000-0000-000000000000.

subscriptionId

string

Subscription Id

The subscription Id.

tenantId

string

Tenant Id

The tenant Id.

displayName

string

Display Name

The subscription display name.

state

string

State

The subscription state.  Values: [Enabled, Warned, PastDue, Disabled, Deleted]

authorizationSource

string

Authorization Source

The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.


 

SubscriptionListResult

Summary:

Description: Subscription list operation response.

 

          Properties:

Name

Type

Summary

value

array of (Subscription)

 

The subscriptions.

nextLink

string

Next Link

The URL to get the next set of results.


 

Table

Summary:

Description:

 

          Properties:

Name

Type

Summary

value

array of (Row)

 

 


 

VisualizeResults

Summary:

Description:

 

          Properties:

Name

Type

Summary

body

string(byte)

Body

 

attachmentContent

string(byte)

Attachment Content

 

attachmentName

string

Attachment Name