1. Packages
  2. Azure Classic
  3. API Docs
  4. datafactory
  5. getFactory

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.datafactory.getFactory

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.datafactory.getFactory({
    name: "existing-adf",
    resourceGroupName: "existing-rg",
});
export const id = example.then(example => example.id);
Copy
import pulumi
import pulumi_azure as azure

example = azure.datafactory.get_factory(name="existing-adf",
    resource_group_name="existing-rg")
pulumi.export("id", example.id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datafactory.LookupFactory(ctx, &datafactory.LookupFactoryArgs{
			Name:              "existing-adf",
			ResourceGroupName: "existing-rg",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.DataFactory.GetFactory.Invoke(new()
    {
        Name = "existing-adf",
        ResourceGroupName = "existing-rg",
    });

    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getFactoryResult => getFactoryResult.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.datafactory.DatafactoryFunctions;
import com.pulumi.azure.datafactory.inputs.GetFactoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = DatafactoryFunctions.getFactory(GetFactoryArgs.builder()
            .name("existing-adf")
            .resourceGroupName("existing-rg")
            .build());

        ctx.export("id", example.applyValue(getFactoryResult -> getFactoryResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:datafactory:getFactory
      arguments:
        name: existing-adf
        resourceGroupName: existing-rg
outputs:
  id: ${example.id}
Copy

Using getFactory

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 getFactory(args: GetFactoryArgs, opts?: InvokeOptions): Promise<GetFactoryResult>
function getFactoryOutput(args: GetFactoryOutputArgs, opts?: InvokeOptions): Output<GetFactoryResult>
Copy
def get_factory(name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetFactoryResult
def get_factory_output(name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetFactoryResult]
Copy
func LookupFactory(ctx *Context, args *LookupFactoryArgs, opts ...InvokeOption) (*LookupFactoryResult, error)
func LookupFactoryOutput(ctx *Context, args *LookupFactoryOutputArgs, opts ...InvokeOption) LookupFactoryResultOutput
Copy

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

public static class GetFactory 
{
    public static Task<GetFactoryResult> InvokeAsync(GetFactoryArgs args, InvokeOptions? opts = null)
    public static Output<GetFactoryResult> Invoke(GetFactoryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFactoryResult> getFactory(GetFactoryArgs args, InvokeOptions options)
public static Output<GetFactoryResult> getFactory(GetFactoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:datafactory/getFactory:getFactory
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of this Azure Data Factory.
ResourceGroupName This property is required. string
The name of the Resource Group where the Azure Data Factory exists.
Name This property is required. string
The name of this Azure Data Factory.
ResourceGroupName This property is required. string
The name of the Resource Group where the Azure Data Factory exists.
name This property is required. String
The name of this Azure Data Factory.
resourceGroupName This property is required. String
The name of the Resource Group where the Azure Data Factory exists.
name This property is required. string
The name of this Azure Data Factory.
resourceGroupName This property is required. string
The name of the Resource Group where the Azure Data Factory exists.
name This property is required. str
The name of this Azure Data Factory.
resource_group_name This property is required. str
The name of the Resource Group where the Azure Data Factory exists.
name This property is required. String
The name of this Azure Data Factory.
resourceGroupName This property is required. String
The name of the Resource Group where the Azure 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 Region where the Azure Data Factory exists.
Name string
ResourceGroupName string
Tags Dictionary<string, string>
A mapping of tags assigned to the Azure Data Factory.
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 Region where the Azure Data Factory exists.
Name string
ResourceGroupName string
Tags map[string]string
A mapping of tags assigned to the Azure Data Factory.
VstsConfigurations []GetFactoryVstsConfiguration
A vsts_configuration block as defined below.
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 Region where the Azure Data Factory exists.
name String
resourceGroupName String
tags Map<String,String>
A mapping of tags assigned to the Azure Data Factory.
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 Region where the Azure Data Factory exists.
name string
resourceGroupName string
tags {[key: string]: string}
A mapping of tags assigned to the Azure Data Factory.
vstsConfigurations GetFactoryVstsConfiguration[]
A vsts_configuration block as defined below.
github_configurations Sequence[GetFactoryGithubConfiguration]
A github_configuration block as defined below.
id str
The provider-assigned unique ID for this managed resource.
identities Sequence[GetFactoryIdentity]
An identity block as defined below.
location str
The Azure Region where the Azure Data Factory exists.
name str
resource_group_name str
tags Mapping[str, str]
A mapping of tags assigned to the Azure Data Factory.
vsts_configurations Sequence[GetFactoryVstsConfiguration]
A vsts_configuration block as defined below.
githubConfigurations List<Property Map>
A github_configuration block as defined below.
id String
The provider-assigned unique ID for this managed resource.
identities List<Property Map>
An identity block as defined below.
location String
The Azure Region where the Azure Data Factory exists.
name String
resourceGroupName String
tags Map<String>
A mapping of tags assigned to the Azure Data Factory.
vstsConfigurations List<Property Map>
A vsts_configuration block as defined below.

Supporting Types

GetFactoryGithubConfiguration

AccountName This property is required. string
The VSTS account name.
BranchName This property is required. string
The branch of the repository to get code from.
GitUrl This property is required. string
The GitHub repository url.
RepositoryName This property is required. string
The name of the git repository.
RootFolder This property is required. string
The root folder within the repository.
AccountName This property is required. string
The VSTS account name.
BranchName This property is required. string
The branch of the repository to get code from.
GitUrl This property is required. string
The GitHub repository url.
RepositoryName This property is required. string
The name of the git repository.
RootFolder This property is required. string
The root folder within the repository.
accountName This property is required. String
The VSTS account name.
branchName This property is required. String
The branch of the repository to get code from.
gitUrl This property is required. String
The GitHub repository url.
repositoryName This property is required. String
The name of the git repository.
rootFolder This property is required. String
The root folder within the repository.
accountName This property is required. string
The VSTS account name.
branchName This property is required. string
The branch of the repository to get code from.
gitUrl This property is required. string
The GitHub repository url.
repositoryName This property is required. string
The name of the git repository.
rootFolder This property is required. string
The root folder within the repository.
account_name This property is required. str
The VSTS account name.
branch_name This property is required. str
The branch of the repository to get code from.
git_url This property is required. str
The GitHub repository url.
repository_name This property is required. str
The name of the git repository.
root_folder This property is required. str
The root folder within the repository.
accountName This property is required. String
The VSTS account name.
branchName This property is required. String
The branch of the repository to get code from.
gitUrl This property is required. String
The GitHub repository url.
repositoryName This property is required. String
The name of the git repository.
rootFolder This property is required. String
The root folder within the repository.

GetFactoryIdentity

IdentityIds This property is required. List<string>
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
PrincipalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
TenantId This property is required. string
The Tenant ID associated with the VSTS account.
Type This property is required. string
The type of Managed Service Identity that is configured on this Data Factory.
IdentityIds This property is required. []string
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
PrincipalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
TenantId This property is required. string
The Tenant ID associated with the VSTS account.
Type This property is required. string
The type of Managed Service Identity that is configured on this Data Factory.
identityIds This property is required. List<String>
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
principalId This property is required. String
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
tenantId This property is required. String
The Tenant ID associated with the VSTS account.
type This property is required. String
The type of Managed Service Identity that is configured on this Data Factory.
identityIds This property is required. string[]
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
principalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
tenantId This property is required. string
The Tenant ID associated with the VSTS account.
type This property is required. string
The type of Managed Service Identity that is configured on this Data Factory.
identity_ids This property is required. Sequence[str]
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
principal_id This property is required. str
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
tenant_id This property is required. str
The Tenant ID associated with the VSTS account.
type This property is required. str
The type of Managed Service Identity that is configured on this Data Factory.
identityIds This property is required. List<String>
The list of User Assigned Managed Identity IDs assigned to this Data Factory.
principalId This property is required. String
The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
tenantId This property is required. String
The Tenant ID associated with the VSTS account.
type This property is required. String
The type of Managed Service Identity that is configured on this Data Factory.

GetFactoryVstsConfiguration

AccountName This property is required. string
The VSTS account name.
BranchName This property is required. string
The branch of the repository to get code from.
ProjectName This property is required. string
The name of the VSTS project.
RepositoryName This property is required. string
The name of the git repository.
RootFolder This property is required. string
The root folder within the repository.
TenantId This property is required. string
The Tenant ID associated with the VSTS account.
AccountName This property is required. string
The VSTS account name.
BranchName This property is required. string
The branch of the repository to get code from.
ProjectName This property is required. string
The name of the VSTS project.
RepositoryName This property is required. string
The name of the git repository.
RootFolder This property is required. string
The root folder within the repository.
TenantId This property is required. string
The Tenant ID associated with the VSTS account.
accountName This property is required. String
The VSTS account name.
branchName This property is required. String
The branch of the repository to get code from.
projectName This property is required. String
The name of the VSTS project.
repositoryName This property is required. String
The name of the git repository.
rootFolder This property is required. String
The root folder within the repository.
tenantId This property is required. String
The Tenant ID associated with the VSTS account.
accountName This property is required. string
The VSTS account name.
branchName This property is required. string
The branch of the repository to get code from.
projectName This property is required. string
The name of the VSTS project.
repositoryName This property is required. string
The name of the git repository.
rootFolder This property is required. string
The root folder within the repository.
tenantId This property is required. string
The Tenant ID associated with the VSTS account.
account_name This property is required. str
The VSTS account name.
branch_name This property is required. str
The branch of the repository to get code from.
project_name This property is required. str
The name of the VSTS project.
repository_name This property is required. str
The name of the git repository.
root_folder This property is required. str
The root folder within the repository.
tenant_id This property is required. str
The Tenant ID associated with the VSTS account.
accountName This property is required. String
The VSTS account name.
branchName This property is required. String
The branch of the repository to get code from.
projectName This property is required. String
The name of the VSTS project.
repositoryName This property is required. String
The name of the git repository.
rootFolder This property is required. String
The root folder within the repository.
tenantId This property is required. String
The Tenant ID associated with the VSTS account.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi