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
LookupFactoryin 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.
- Resource
Group stringName The name of the resource group where the Data Factory exists.
- Name string
Specifies the name of the Data Factory to retrieve information about.
- Resource
Group stringName The name of the resource group where the Data Factory exists.
- name string
Specifies the name of the Data Factory to retrieve information about.
- resource
Group stringName 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_ strname The name of the resource group where the Data Factory exists.
GetFactory Result
The following output properties are available:
- Github
Configurations List<GetFactory Github Configuration> A
github_configurationblock as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Factory Identity> An
identityblock as defined below.- Location string
The Azure location where the resource exists.
- Name string
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to the resource.
- Vsts
Configurations List<GetFactory Vsts Configuration> A
vsts_configurationblock as defined below.
- Github
Configurations []GetFactory Github Configuration A
github_configurationblock as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Factory Identity An
identityblock as defined below.- Location string
The Azure location where the resource exists.
- Name string
- Resource
Group stringName - map[string]string
A mapping of tags assigned to the resource.
- Vsts
Configurations []GetFactory Vsts Configuration A
vsts_configurationblock as defined below.
- github
Configurations GetFactory Github Configuration[] A
github_configurationblock as defined below.- id string
The provider-assigned unique ID for this managed resource.
- identities
Get
Factory Identity[] An
identityblock as defined below.- location string
The Azure location where the resource exists.
- name string
- resource
Group stringName - {[key: string]: string}
A mapping of tags assigned to the resource.
- vsts
Configurations GetFactory Vsts Configuration[] A
vsts_configurationblock as defined below.
- github_
configurations List[GetFactory Github Configuration] A
github_configurationblock as defined below.- id str
The provider-assigned unique ID for this managed resource.
- identities
List[Get
Factory Identity] An
identityblock as defined below.- location str
The Azure location where the resource exists.
- name str
- resource_
group_ strname - Dict[str, str]
A mapping of tags assigned to the resource.
- vsts_
configurations List[GetFactory Vsts Configuration] A
vsts_configurationblock 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.
- Account
Name string The VSTS account name.
- Branch
Name string The branch of the repository to get code from.
- Git
Url string The GitHub Enterprise host name.
- 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 Enterprise host name.
- 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 Enterprise host name.
- 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 Enterprise host name.
- repository
Name str The name of the git repository.
- root
Folder 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.
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.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.