Module operationalinsights

@pulumi/azure > operationalinsights

Index

operationalinsights/analyticsSolution.ts operationalinsights/analyticsWorkspace.ts operationalinsights/analyticsWorkspaceLinkedService.ts operationalinsights/getAnalyticsWorkspace.ts

class AnalyticsSolution

Manages a Log Analytics (formally Operational Insights) Solution.

constructor

new AnalyticsSolution(name: string, args: AnalyticsSolutionArgs, opts?: pulumi.CustomResourceOptions)

Create a AnalyticsSolution resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AnalyticsSolutionState): AnalyticsSolution

Get an existing AnalyticsSolution resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property location

public location: pulumi.Output<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property plan

public plan: pulumi.Output<{ ... }>;

A plan block as documented below.

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and it’s related workspace can only exist in the same resource group.

property solutionName

public solutionName: pulumi.Output<string>;

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property workspaceName

public workspaceName: pulumi.Output<string>;

property workspaceResourceId

public workspaceResourceId: pulumi.Output<string>;

The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.

class AnalyticsWorkspace

Manages a Log Analytics (formally Operational Insights) Workspace.

constructor

new AnalyticsWorkspace(name: string, args: AnalyticsWorkspaceArgs, opts?: pulumi.CustomResourceOptions)

Create a AnalyticsWorkspace resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AnalyticsWorkspaceState): AnalyticsWorkspace

Get an existing AnalyticsWorkspace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property location

public location: pulumi.Output<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property name

public name: pulumi.Output<string>;

Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or ‘-‘. The ‘-‘ shouldn’t be the first or the last symbol. Changing this forces a new resource to be created.

property portalUrl

public portalUrl: pulumi.Output<string>;

The Portal URL for the Log Analytics Workspace.

property primarySharedKey

public primarySharedKey: pulumi.Output<string>;

The Primary shared key for the Log Analytics Workspace.

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.

property retentionInDays

public retentionInDays: pulumi.Output<number>;

The workspace data retention in days. Possible values range between 30 and 730.

property secondarySharedKey

public secondarySharedKey: pulumi.Output<string>;

The Secondary shared key for the Log Analytics Workspace.

property sku

public sku: pulumi.Output<string>;

Specifies the Sku of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, and PerGB2018 (new Sku as of 2018-04-03).

property tags

public tags: pulumi.Output<{ ... }>;

A mapping of tags to assign to the resource.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property workspaceId

public workspaceId: pulumi.Output<string>;

The Workspace (or Customer) ID for the Log Analytics Workspace.

class AnalyticsWorkspaceLinkedService

Links a Log Analytics (formally Operational Insights) Workspace to another resource. The (currently) only linkable service is an Azure Automation Account.

constructor

new AnalyticsWorkspaceLinkedService(name: string, args: AnalyticsWorkspaceLinkedServiceArgs, opts?: pulumi.CustomResourceOptions)

Create a AnalyticsWorkspaceLinkedService resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AnalyticsWorkspaceLinkedServiceState): AnalyticsWorkspaceLinkedService

Get an existing AnalyticsWorkspaceLinkedService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property linkedServiceName

public linkedServiceName: pulumi.Output<string | undefined>;

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

property linkedServiceProperties

public linkedServiceProperties: pulumi.Output<{ ... }>;

A linked_service_properties block as defined below.

property name

public name: pulumi.Output<string>;

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

property tags

public tags: pulumi.Output<{ ... }>;

A mapping of tags to assign to the resource.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property workspaceName

public workspaceName: pulumi.Output<string>;

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

function getAnalyticsWorkspace

getAnalyticsWorkspace(args: GetAnalyticsWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise<GetAnalyticsWorkspaceResult>

Use this data source to access information about an existing Log Analytics (formally Operational Insights) Workspace.

interface AnalyticsSolutionArgs

The set of arguments for constructing a AnalyticsSolution resource.

property location

location: pulumi.Input<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property plan

plan: pulumi.Input<{ ... }>;

A plan block as documented below.

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and it’s related workspace can only exist in the same resource group.

property solutionName

solutionName: pulumi.Input<string>;

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

property workspaceName

workspaceName: pulumi.Input<string>;

property workspaceResourceId

workspaceResourceId: pulumi.Input<string>;

The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.

interface AnalyticsSolutionState

Input properties used for looking up and filtering AnalyticsSolution resources.

property location

location?: pulumi.Input<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property plan

plan?: pulumi.Input<{ ... }>;

A plan block as documented below.

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and it’s related workspace can only exist in the same resource group.

property solutionName

solutionName?: pulumi.Input<string>;

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

property workspaceName

workspaceName?: pulumi.Input<string>;

property workspaceResourceId

workspaceResourceId?: pulumi.Input<string>;

The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.

interface AnalyticsWorkspaceArgs

The set of arguments for constructing a AnalyticsWorkspace resource.

property location

location: pulumi.Input<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property name

name?: pulumi.Input<string>;

Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or ‘-‘. The ‘-‘ shouldn’t be the first or the last symbol. Changing this forces a new resource to be created.

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.

property retentionInDays

retentionInDays?: pulumi.Input<number>;

The workspace data retention in days. Possible values range between 30 and 730.

property sku

sku: pulumi.Input<string>;

Specifies the Sku of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, and PerGB2018 (new Sku as of 2018-04-03).

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

interface AnalyticsWorkspaceLinkedServiceArgs

The set of arguments for constructing a AnalyticsWorkspaceLinkedService resource.

property linkedServiceName

linkedServiceName?: pulumi.Input<string>;

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

property linkedServiceProperties

linkedServiceProperties: pulumi.Input<{ ... }>;

A linked_service_properties block as defined below.

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

property workspaceName

workspaceName: pulumi.Input<string>;

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

interface AnalyticsWorkspaceLinkedServiceState

Input properties used for looking up and filtering AnalyticsWorkspaceLinkedService resources.

property linkedServiceName

linkedServiceName?: pulumi.Input<string>;

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

property linkedServiceProperties

linkedServiceProperties?: pulumi.Input<{ ... }>;

A linked_service_properties block as defined below.

property name

name?: pulumi.Input<string>;

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

property workspaceName

workspaceName?: pulumi.Input<string>;

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

interface AnalyticsWorkspaceState

Input properties used for looking up and filtering AnalyticsWorkspace resources.

property location

location?: pulumi.Input<string>;

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

property name

name?: pulumi.Input<string>;

Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or ‘-‘. The ‘-‘ shouldn’t be the first or the last symbol. Changing this forces a new resource to be created.

property portalUrl

portalUrl?: pulumi.Input<string>;

The Portal URL for the Log Analytics Workspace.

property primarySharedKey

primarySharedKey?: pulumi.Input<string>;

The Primary shared key for the Log Analytics Workspace.

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.

property retentionInDays

retentionInDays?: pulumi.Input<number>;

The workspace data retention in days. Possible values range between 30 and 730.

property secondarySharedKey

secondarySharedKey?: pulumi.Input<string>;

The Secondary shared key for the Log Analytics Workspace.

property sku

sku?: pulumi.Input<string>;

Specifies the Sku of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, and PerGB2018 (new Sku as of 2018-04-03).

property tags

tags?: pulumi.Input<{ ... }>;

A mapping of tags to assign to the resource.

property workspaceId

workspaceId?: pulumi.Input<string>;

The Workspace (or Customer) ID for the Log Analytics Workspace.

interface GetAnalyticsWorkspaceArgs

A collection of arguments for invoking getAnalyticsWorkspace.

property name

name: string;

Specifies the name of the Log Analytics Workspace.

property resourceGroupName

resourceGroupName: string;

The name of the resource group in which the Log Analytics workspace is located in.

interface GetAnalyticsWorkspaceResult

A collection of values returned by getAnalyticsWorkspace.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property location

location: string;

property portalUrl

portalUrl: string;

The Portal URL for the Log Analytics Workspace.

property primarySharedKey

primarySharedKey: string;

The Primary shared key for the Log Analytics Workspace.

property retentionInDays

retentionInDays: number;

The workspace data retention in days.

property secondarySharedKey

secondarySharedKey: string;

The Secondary shared key for the Log Analytics Workspace.

property sku

sku: string;

The Sku of the Log Analytics Workspace.

property tags

tags: { ... };

A mapping of tags assigned to the resource.

property workspaceId

workspaceId: string;

The Workspace (or Customer) ID for the Log Analytics Workspace.