GetFactory

Use this data source to access information about an existing Azure Data Factory (Version 2).

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.DataFactory.GetFactory.InvokeAsync(new Azure.DataFactory.GetFactoryArgs
        {
            Name = azurerm_data_factory.Example.Name,
            ResourceGroupName = azurerm_data_factory.Example.Resource_group_name,
        }));
        this.DataFactoryId = azurerm_data_factory.Example.Id;
    }

    [Output("dataFactoryId")]
    public Output<string> DataFactoryId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datafactory"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := datafactory.LookupFactory(ctx, &datafactory.LookupFactoryArgs{
            Name:              azurerm_data_factory.Example.Name,
            ResourceGroupName: azurerm_data_factory.Example.Resource_group_name,
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("dataFactoryId", azurerm_data_factory.Example.Id)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.datafactory.get_factory(name=azurerm_data_factory["example"]["name"],
    resource_group_name=azurerm_data_factory["example"]["resource_group_name"])
pulumi.export("dataFactoryId", azurerm_data_factory["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.datafactory.getFactory({
    name: azurerm_data_factory.example.name,
    resourceGroupName: azurerm_data_factory.example.resource_group_name,
});
export const dataFactoryId = azurerm_data_factory.example.id;

Using GetFactory

function getFactory(args: GetFactoryArgs, opts?: InvokeOptions): Promise<GetFactoryResult>
function  get_factory(name=None, resource_group_name=None, opts=None)
func LookupFactory(ctx *Context, args *LookupFactoryArgs, opts ...InvokeOption) (*LookupFactoryResult, error)

Note: This function is named LookupFactory in the Go SDK.

public static class GetFactory {
    public static Task<GetFactoryResult> InvokeAsync(GetFactoryArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies the name of the Data Factory to retrieve information about.

ResourceGroupName string

The name of the resource group where the Data Factory exists.

Name string

Specifies the name of the Data Factory to retrieve information about.

ResourceGroupName string

The name of the resource group where the Data Factory exists.

name string

Specifies the name of the Data Factory to retrieve information about.

resourceGroupName string

The name of the resource group where the Data Factory exists.

name str

Specifies the name of the Data Factory to retrieve information about.

resource_group_name str

The name of the resource group where the Data Factory exists.

GetFactory Result

The following output properties are available:

GithubConfigurations List<GetFactoryGithubConfiguration>

A github_configuration block as defined below.

Id string

The provider-assigned unique ID for this managed resource.

Identities List<GetFactoryIdentity>

An identity block as defined below.

Location string

The Azure location where the resource exists.

Name string
ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

VstsConfigurations List<GetFactoryVstsConfiguration>

A vsts_configuration block as defined below.

GithubConfigurations []GetFactoryGithubConfiguration

A github_configuration block as defined below.

Id string

The provider-assigned unique ID for this managed resource.

Identities []GetFactoryIdentity

An identity block as defined below.

Location string

The Azure location where the resource exists.

Name string
ResourceGroupName string
Tags map[string]string

A mapping of tags assigned to the resource.

VstsConfigurations []GetFactoryVstsConfiguration

A vsts_configuration block as defined below.

githubConfigurations GetFactoryGithubConfiguration[]

A github_configuration block as defined below.

id string

The provider-assigned unique ID for this managed resource.

identities GetFactoryIdentity[]

An identity block as defined below.

location string

The Azure location where the resource exists.

name string
resourceGroupName string
tags {[key: string]: string}

A mapping of tags assigned to the resource.

vstsConfigurations GetFactoryVstsConfiguration[]

A vsts_configuration block as defined below.

github_configurations List[GetFactoryGithubConfiguration]

A github_configuration block as defined below.

id str

The provider-assigned unique ID for this managed resource.

identities List[GetFactoryIdentity]

An identity block as defined below.

location str

The Azure location where the resource exists.

name str
resource_group_name str
tags Dict[str, str]

A mapping of tags assigned to the resource.

vsts_configurations List[GetFactoryVstsConfiguration]

A vsts_configuration block as defined below.

Supporting Types

GetFactoryGithubConfiguration

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AccountName string

The VSTS account name.

BranchName string

The branch of the repository to get code from.

GitUrl string

The GitHub Enterprise host name.

RepositoryName string

The name of the git repository.

RootFolder string

The root folder within the repository.

AccountName string

The VSTS account name.

BranchName string

The branch of the repository to get code from.

GitUrl string

The GitHub Enterprise host name.

RepositoryName string

The name of the git repository.

RootFolder string

The root folder within the repository.

accountName string

The VSTS account name.

branchName string

The branch of the repository to get code from.

gitUrl string

The GitHub Enterprise host name.

repositoryName string

The name of the git repository.

rootFolder string

The root folder within the repository.

account_name str

The VSTS account name.

branchName str

The branch of the repository to get code from.

gitUrl str

The GitHub Enterprise host name.

repositoryName str

The name of the git repository.

rootFolder str

The root folder within the repository.

GetFactoryIdentity

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

PrincipalId string

The ID of the Principal (Client) in Azure Active Directory.

TenantId string

The Tenant ID associated with the VSTS account.

Type string

The identity type of the Data Factory.

PrincipalId string

The ID of the Principal (Client) in Azure Active Directory.

TenantId string

The Tenant ID associated with the VSTS account.

Type string

The identity type of the Data Factory.

principalId string

The ID of the Principal (Client) in Azure Active Directory.

tenantId string

The Tenant ID associated with the VSTS account.

type string

The identity type of the Data Factory.

principal_id str

The ID of the Principal (Client) in Azure Active Directory.

tenant_id str

The Tenant ID associated with the VSTS account.

type str

The identity type of the Data Factory.

GetFactoryVstsConfiguration

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AccountName string

The VSTS account name.

BranchName string

The branch of the repository to get code from.

ProjectName string

The name of the VSTS project.

RepositoryName string

The name of the git repository.

RootFolder string

The root folder within the repository.

TenantId string

The Tenant ID associated with the VSTS account.

AccountName string

The VSTS account name.

BranchName string

The branch of the repository to get code from.

ProjectName string

The name of the VSTS project.

RepositoryName string

The name of the git repository.

RootFolder string

The root folder within the repository.

TenantId string

The Tenant ID associated with the VSTS account.

accountName string

The VSTS account name.

branchName string

The branch of the repository to get code from.

projectName string

The name of the VSTS project.

repositoryName string

The name of the git repository.

rootFolder string

The root folder within the repository.

tenantId string

The Tenant ID associated with the VSTS account.

account_name str

The VSTS account name.

branchName str

The branch of the repository to get code from.

projectName str

The name of the VSTS project.

repositoryName str

The name of the git repository.

rootFolder str

The root folder within the repository.

tenant_id str

The Tenant ID associated with the VSTS account.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.