We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:datafactory/getFactory:getFactory
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Azure Data Factory.
- Resource
Group stringName - The name of the Resource Group where the Azure Data Factory exists.
- Name string
- The name of this Azure Data Factory.
- Resource
Group stringName - The name of the Resource Group where the Azure Data Factory exists.
- name String
- The name of this Azure Data Factory.
- resource
Group StringName - The name of the Resource Group where the Azure Data Factory exists.
- name string
- The name of this Azure Data Factory.
- resource
Group 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.
- resource
Group StringName - The name of the Resource Group where the Azure Data Factory exists.
getFactory Result
The following output properties are available:
- Github
Configurations List<GetFactory Github Configuration> - A
github_configuration
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Factory Identity> - An
identity
block as defined below. - Location string
- The Azure Region where the Azure Data Factory exists.
- Name string
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags assigned to the Azure Data Factory.
- Vsts
Configurations List<GetFactory Vsts Configuration> - A
vsts_configuration
block as defined below.
- Github
Configurations []GetFactory Github Configuration - A
github_configuration
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Factory Identity - An
identity
block as defined below. - Location string
- The Azure Region where the Azure Data Factory exists.
- Name string
- Resource
Group stringName - map[string]string
- A mapping of tags assigned to the Azure Data Factory.
- Vsts
Configurations []GetFactory Vsts Configuration - A
vsts_configuration
block as defined below.
- github
Configurations List<GetFactory Github Configuration> - A
github_configuration
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Factory Identity> - An
identity
block as defined below. - location String
- The Azure Region where the Azure Data Factory exists.
- name String
- resource
Group StringName - Map<String,String>
- A mapping of tags assigned to the Azure Data Factory.
- vsts
Configurations List<GetFactory Vsts Configuration> - A
vsts_configuration
block as defined below.
- github
Configurations GetFactory Github Configuration[] - A
github_configuration
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Factory Identity[] - An
identity
block as defined below. - location string
- The Azure Region where the Azure Data Factory exists.
- name string
- resource
Group stringName - {[key: string]: string}
- A mapping of tags assigned to the Azure Data Factory.
- vsts
Configurations GetFactory Vsts Configuration[] - A
vsts_configuration
block as defined below.
- github_
configurations Sequence[GetFactory Github Configuration] - A
github_configuration
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Factory Identity] - An
identity
block 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_configuration
block as defined below.
- github
Configurations 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
- resource
Group StringName - Map<String>
- A mapping of tags assigned to the Azure Data Factory.
- vsts
Configurations List<Property Map> - A
vsts_configuration
block as defined below.
Supporting Types
GetFactoryGithubConfiguration
- Account
Name string - The VSTS account name.
- Branch
Name string - The branch of the repository to get code from.
- Git
Url string - The GitHub repository url.
- Repository
Name string - The name of the git repository.
- Root
Folder string - The root folder within the repository.
- Account
Name string - The VSTS account name.
- Branch
Name string - The branch of the repository to get code from.
- Git
Url string - The GitHub repository url.
- Repository
Name string - The name of the git repository.
- Root
Folder string - The root folder within the repository.
- account
Name String - The VSTS account name.
- branch
Name String - The branch of the repository to get code from.
- git
Url String - The GitHub repository url.
- repository
Name String - The name of the git repository.
- root
Folder String - The root folder within the repository.
- account
Name string - The VSTS account name.
- branch
Name string - The branch of the repository to get code from.
- git
Url string - The GitHub repository url.
- repository
Name string - The name of the git repository.
- root
Folder 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.
- account
Name String - The VSTS account name.
- branch
Name String - The branch of the repository to get code from.
- git
Url String - The GitHub repository url.
- repository
Name String - The name of the git repository.
- root
Folder String - The root folder within the repository.
GetFactoryIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- Tenant
Id 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 []string - The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- Tenant
Id 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 List<String> - The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenant
Id 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 string[] - The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenant
Id 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.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Data Factory.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Data Factory.
- tenant
Id 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
- Account
Name string - The VSTS account name.
- Branch
Name string - The branch of the repository to get code from.
- Project
Name string - The name of the VSTS project.
- Repository
Name string - The name of the git repository.
- Root
Folder string - The root folder within the repository.
- Tenant
Id string - The Tenant ID associated with the VSTS account.
- Account
Name string - The VSTS account name.
- Branch
Name string - The branch of the repository to get code from.
- Project
Name string - The name of the VSTS project.
- Repository
Name string - The name of the git repository.
- Root
Folder string - The root folder within the repository.
- Tenant
Id string - The Tenant ID associated with the VSTS account.
- account
Name String - The VSTS account name.
- branch
Name String - The branch of the repository to get code from.
- project
Name String - The name of the VSTS project.
- repository
Name String - The name of the git repository.
- root
Folder String - The root folder within the repository.
- tenant
Id String - The Tenant ID associated with the VSTS account.
- account
Name string - The VSTS account name.
- branch
Name string - The branch of the repository to get code from.
- project
Name string - The name of the VSTS project.
- repository
Name string - The name of the git repository.
- root
Folder string - The root folder within the repository.
- tenant
Id 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.
- account
Name String - The VSTS account name.
- branch
Name String - The branch of the repository to get code from.
- project
Name String - The name of the VSTS project.
- repository
Name String - The name of the git repository.
- root
Folder String - The root folder within the repository.
- tenant
Id 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.