We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.datafactory.getFactory
Explore with Pulumi AI
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);
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)
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
	})
}
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),
    };
});
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()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:datafactory:getFactory
      arguments:
        name: existing-adf
        resourceGroupName: existing-rg
outputs:
  id: ${example.id}
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>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]func LookupFactory(ctx *Context, args *LookupFactoryArgs, opts ...InvokeOption) (*LookupFactoryResult, error)
func LookupFactoryOutput(ctx *Context, args *LookupFactoryOutputArgs, opts ...InvokeOption) LookupFactoryResultOutput> 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)
}public static CompletableFuture<GetFactoryResult> getFactory(GetFactoryArgs args, InvokeOptions options)
public static Output<GetFactoryResult> getFactory(GetFactoryArgs args, InvokeOptions options)
fn::invoke:
  function: azure:datafactory/getFactory:getFactory
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of this Azure Data Factory.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Data Factory exists.
- Name string
- The name of this Azure Data Factory.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Data Factory exists.
- name String
- The name of this Azure Data Factory.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Data Factory exists.
- name string
- The name of this Azure Data Factory.
- resourceGroup stringName 
- The name of the Resource Group where the Azure Data Factory exists.
- name str
- The name of this Azure Data Factory.
- resource_group_ strname 
- The name of the Resource Group where the Azure Data Factory exists.
- name String
- The name of this Azure Data Factory.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Data Factory exists.
getFactory Result
The following output properties are available:
- GithubConfigurations List<GetFactory Github Configuration> 
- A github_configurationblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<GetFactory Identity> 
- An identityblock as defined below.
- Location string
- The Azure Region where the Azure Data Factory exists.
- Name string
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags assigned to the Azure Data Factory.
- VstsConfigurations List<GetFactory Vsts Configuration> 
- A vsts_configurationblock as defined below.
- GithubConfigurations []GetFactory Github Configuration 
- A github_configurationblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]GetFactory Identity 
- An identityblock as defined below.
- Location string
- The Azure Region where the Azure Data Factory exists.
- Name string
- ResourceGroup stringName 
- map[string]string
- A mapping of tags assigned to the Azure Data Factory.
- VstsConfigurations []GetFactory Vsts Configuration 
- A vsts_configurationblock as defined below.
- githubConfigurations List<GetFactory Github Configuration> 
- A github_configurationblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<GetFactory Identity> 
- An identityblock as defined below.
- location String
- The Azure Region where the Azure Data Factory exists.
- name String
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags assigned to the Azure Data Factory.
- vstsConfigurations List<GetFactory Vsts Configuration> 
- A vsts_configurationblock as defined below.
- githubConfigurations GetFactory Github Configuration[] 
- A github_configurationblock as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
GetFactory Identity[] 
- An identityblock as defined below.
- location string
- The Azure Region where the Azure Data Factory exists.
- name string
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags assigned to the Azure Data Factory.
- vstsConfigurations GetFactory Vsts Configuration[] 
- A vsts_configurationblock as defined below.
- github_configurations Sequence[GetFactory Github Configuration] 
- A github_configurationblock as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[GetFactory Identity] 
- An identityblock as defined below.
- location str
- The Azure Region where the Azure Data Factory exists.
- name str
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags assigned to the Azure Data Factory.
- vsts_configurations Sequence[GetFactory Vsts Configuration] 
- A vsts_configurationblock as defined below.
- githubConfigurations List<Property Map>
- A github_configurationblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- An identityblock as defined below.
- location String
- The Azure Region where the Azure Data Factory exists.
- name String
- resourceGroup StringName 
- Map<String>
- A mapping of tags assigned to the Azure Data Factory.
- vstsConfigurations List<Property Map>
- A vsts_configurationblock as defined below.
Supporting Types
GetFactoryGithubConfiguration   
- AccountName string
- The VSTS account name.
- BranchName string
- The branch of the repository to get code from.
- GitUrl string
- The GitHub repository url.
- 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 repository url.
- 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 repository url.
- 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 repository url.
- repositoryName string
- The name of the git repository.
- rootFolder string
- The root folder within the repository.
- account_name str
- The VSTS account name.
- branch_name str
- The branch of the repository to get code from.
- git_url str
- The GitHub repository url.
- repository_name str
- The name of the git repository.
- root_folder str
- 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 repository url.
- repositoryName String
- The name of the git repository.
- rootFolder String
- The root folder within the repository.
GetFactoryIdentity  
- IdentityIds List<string>
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- PrincipalId string
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- TenantId string
- The Tenant ID associated with the VSTS account.
- Type string
- The type of Managed Service Identity that is configured on this Data Factory.
- IdentityIds []string
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- PrincipalId string
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- TenantId string
- The Tenant ID associated with the VSTS account.
- Type string
- The type of Managed Service Identity that is configured on this Data Factory.
- identityIds List<String>
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principalId String
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenantId String
- The Tenant ID associated with the VSTS account.
- type String
- The type of Managed Service Identity that is configured on this Data Factory.
- identityIds string[]
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principalId string
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenantId string
- The Tenant ID associated with the VSTS account.
- type string
- The type of Managed Service Identity that is configured on this Data Factory.
- identity_ids Sequence[str]
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principal_id str
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenant_id str
- The Tenant ID associated with the VSTS account.
- type str
- The type of Managed Service Identity that is configured on this Data Factory.
- identityIds List<String>
- The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principalId String
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenantId String
- The Tenant ID associated with the VSTS account.
- type String
- The type of Managed Service Identity that is configured on this Data Factory.
GetFactoryVstsConfiguration   
- 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.
- 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.
- branch_name str
- The branch of the repository to get code from.
- project_name str
- The name of the VSTS project.
- repository_name str
- The name of the git repository.
- root_folder str
- The root folder within the repository.
- tenant_id str
- 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.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.