1. Packages
  2. Azure Native
  3. API Docs
  4. operationalinsights
  5. getLinkedService
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.operationalinsights.getLinkedService

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets a linked service instance.

Uses Azure REST API version 2023-09-01.

Other available API versions: 2015-11-01-preview, 2019-08-01-preview, 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native operationalinsights [ApiVersion]. See the version guide for details.

Using getLinkedService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLinkedService(args: GetLinkedServiceArgs, opts?: InvokeOptions): Promise<GetLinkedServiceResult>
function getLinkedServiceOutput(args: GetLinkedServiceOutputArgs, opts?: InvokeOptions): Output<GetLinkedServiceResult>
Copy
def get_linked_service(linked_service_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       workspace_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLinkedServiceResult
def get_linked_service_output(linked_service_name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       workspace_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLinkedServiceResult]
Copy
func LookupLinkedService(ctx *Context, args *LookupLinkedServiceArgs, opts ...InvokeOption) (*LookupLinkedServiceResult, error)
func LookupLinkedServiceOutput(ctx *Context, args *LookupLinkedServiceOutputArgs, opts ...InvokeOption) LookupLinkedServiceResultOutput
Copy

> Note: This function is named LookupLinkedService in the Go SDK.

public static class GetLinkedService 
{
    public static Task<GetLinkedServiceResult> InvokeAsync(GetLinkedServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetLinkedServiceResult> Invoke(GetLinkedServiceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLinkedServiceResult> getLinkedService(GetLinkedServiceArgs args, InvokeOptions options)
public static Output<GetLinkedServiceResult> getLinkedService(GetLinkedServiceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:operationalinsights:getLinkedService
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LinkedServiceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the linked service.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
LinkedServiceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the linked service.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
linkedServiceName
This property is required.
Changes to this property will trigger replacement.
String
Name of the linked service.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
linkedServiceName
This property is required.
Changes to this property will trigger replacement.
string
Name of the linked service.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
linked_service_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the linked service.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workspace.
linkedServiceName
This property is required.
Changes to this property will trigger replacement.
String
Name of the linked service.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.

getLinkedService Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
ProvisioningState string
The provisioning state of the linked service.
ResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
Tags Dictionary<string, string>
Resource tags.
WriteAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
ProvisioningState string
The provisioning state of the linked service.
ResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
Tags map[string]string
Resource tags.
WriteAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
provisioningState String
The provisioning state of the linked service.
resourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Map<String,String>
Resource tags.
writeAccessResourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
azureApiVersion string
The Azure API version of the resource.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
provisioningState string
The provisioning state of the linked service.
resourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags {[key: string]: string}
Resource tags.
writeAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
azure_api_version str
The Azure API version of the resource.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
provisioning_state str
The provisioning state of the linked service.
resource_id str
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Mapping[str, str]
Resource tags.
write_access_resource_id str
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
provisioningState String
The provisioning state of the linked service.
resourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Map<String>
Resource tags.
writeAccessResourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi