loganalytics

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.loganalytics.LinkedService(resource_name, opts=None, linked_service_name=None, linked_service_properties=None, resource_group_name=None, resource_id=None, tags=None, workspace_name=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • linked_service_name (pulumi.Input[str]) – 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.

  • linked_service_properties (pulumi.Input[dict]) – A linked_service_properties block as defined below.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

  • resource_id (pulumi.Input[str]) – The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • workspace_name (pulumi.Input[str]) – Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

The linked_service_properties object supports the following:

  • resource_id (pulumi.Input[str]) - The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

linked_service_name = None

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.

linked_service_properties = None

A linked_service_properties block as defined below.

  • resource_id (str) - The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

name = None

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

resource_group_name = None

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

resource_id = None

The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

tags = None

A mapping of tags to assign to the resource.

workspace_name = None

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

static get(resource_name, id, opts=None, linked_service_name=None, linked_service_properties=None, name=None, resource_group_name=None, resource_id=None, tags=None, workspace_name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • linked_service_name (pulumi.Input[str]) – 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.

  • linked_service_properties (pulumi.Input[dict]) – A linked_service_properties block as defined below.

  • name (pulumi.Input[str]) – 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

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

  • resource_id (pulumi.Input[str]) – The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • workspace_name (pulumi.Input[str]) – Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

The linked_service_properties object supports the following:

  • resource_id (pulumi.Input[str]) - The resource id of the resource that will be linked to the workspace. This field has been deprecated in favour of the top-level resource_id field and will be removed in v2.0 of the AzureRM Provider.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str