Factory
Manages an Azure Data Factory (Version 2).
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleFactory = new Azure.DataFactory.Factory("exampleFactory", new Azure.DataFactory.FactoryArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"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 {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("northeurope"),
})
if err != nil {
return err
}
_, err = datafactory.NewFactory(ctx, "exampleFactory", &datafactory.FactoryArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="northeurope")
example_factory = azure.datafactory.Factory("exampleFactory",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "northeurope"});
const exampleFactory = new azure.datafactory.Factory("exampleFactory", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});Create a Factory Resource
new Factory(name: string, args: FactoryArgs, opts?: CustomResourceOptions);def Factory(resource_name, opts=None, github_configuration=None, identity=None, location=None, name=None, resource_group_name=None, tags=None, vsts_configuration=None, __props__=None);func NewFactory(ctx *Context, name string, args FactoryArgs, opts ...ResourceOption) (*Factory, error)public Factory(string name, FactoryArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FactoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FactoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FactoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Factory Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Factory resource accepts the following input properties:
- Resource
Group stringName The name of the resource group in which to create the Data Factory.
- Github
Configuration FactoryGithub Configuration Args A
github_configurationblock as defined below.- Identity
Factory
Identity Args An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Vsts
Configuration FactoryVsts Configuration Args A
vsts_configurationblock as defined below.
- Resource
Group stringName The name of the resource group in which to create the Data Factory.
- Github
Configuration FactoryGithub Configuration A
github_configurationblock as defined below.- Identity
Factory
Identity An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- map[string]string
A mapping of tags to assign to the resource.
- Vsts
Configuration FactoryVsts Configuration A
vsts_configurationblock as defined below.
- resource
Group stringName The name of the resource group in which to create the Data Factory.
- github
Configuration FactoryGithub Configuration A
github_configurationblock as defined below.- identity
Factory
Identity An
identityblock as defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- vsts
Configuration FactoryVsts Configuration A
vsts_configurationblock as defined below.
- resource_
group_ strname The name of the resource group in which to create the Data Factory.
- github_
configuration Dict[FactoryGithub Configuration] A
github_configurationblock as defined below.- identity
Dict[Factory
Identity] An
identityblock as defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Dict[str, str]
A mapping of tags to assign to the resource.
- vsts_
configuration Dict[FactoryVsts Configuration] A
vsts_configurationblock as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Factory resource produces the following output properties:
Look up an Existing Factory Resource
Get an existing Factory resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FactoryState, opts?: CustomResourceOptions): Factorystatic get(resource_name, id, opts=None, github_configuration=None, identity=None, location=None, name=None, resource_group_name=None, tags=None, vsts_configuration=None, __props__=None);func GetFactory(ctx *Context, name string, id IDInput, state *FactoryState, opts ...ResourceOption) (*Factory, error)public static Factory Get(string name, Input<string> id, FactoryState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Github
Configuration FactoryGithub Configuration Args A
github_configurationblock as defined below.- Identity
Factory
Identity Args An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Resource
Group stringName The name of the resource group in which to create the Data Factory.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Vsts
Configuration FactoryVsts Configuration Args A
vsts_configurationblock as defined below.
- Github
Configuration FactoryGithub Configuration A
github_configurationblock as defined below.- Identity
Factory
Identity An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- Resource
Group stringName The name of the resource group in which to create the Data Factory.
- map[string]string
A mapping of tags to assign to the resource.
- Vsts
Configuration FactoryVsts Configuration A
vsts_configurationblock as defined below.
- github
Configuration FactoryGithub Configuration A
github_configurationblock as defined below.- identity
Factory
Identity An
identityblock as defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- resource
Group stringName The name of the resource group in which to create the Data Factory.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- vsts
Configuration FactoryVsts Configuration A
vsts_configurationblock as defined below.
- github_
configuration Dict[FactoryGithub Configuration] A
github_configurationblock as defined below.- identity
Dict[Factory
Identity] An
identityblock as defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Data Factory. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions.
- resource_
group_ strname The name of the resource group in which to create the Data Factory.
- Dict[str, str]
A mapping of tags to assign to the resource.
- vsts_
configuration Dict[FactoryVsts Configuration] A
vsts_configurationblock as defined below.
Supporting Types
FactoryGithubConfiguration
- Account
Name string Specifies the GitHub account name.
- Branch
Name string Specifies the branch of the repository to get code from.
- Git
Url string Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories.
- Repository
Name string Specifies the name of the git repository.
- Root
Folder string Specifies the root folder within the repository. Set to
/for the top level.
- Account
Name string Specifies the GitHub account name.
- Branch
Name string Specifies the branch of the repository to get code from.
- Git
Url string Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories.
- Repository
Name string Specifies the name of the git repository.
- Root
Folder string Specifies the root folder within the repository. Set to
/for the top level.
- account
Name string Specifies the GitHub account name.
- branch
Name string Specifies the branch of the repository to get code from.
- git
Url string Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories.
- repository
Name string Specifies the name of the git repository.
- root
Folder string Specifies the root folder within the repository. Set to
/for the top level.
- account_
name str Specifies the GitHub account name.
- branch
Name str Specifies the branch of the repository to get code from.
- git
Url str Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories.
- repository
Name str Specifies the name of the git repository.
- root
Folder str Specifies the root folder within the repository. Set to
/for the top level.
FactoryIdentity
FactoryVstsConfiguration
- Account
Name string Specifies the VSTS account name.
- Branch
Name string Specifies the branch of the repository to get code from.
- Project
Name string Specifies the name of the VSTS project.
- Repository
Name string Specifies the name of the git repository.
- Root
Folder string Specifies the root folder within the repository. Set to
/for the top level.- Tenant
Id string Specifies the Tenant ID associated with the VSTS account.
- Account
Name string Specifies the VSTS account name.
- Branch
Name string Specifies the branch of the repository to get code from.
- Project
Name string Specifies the name of the VSTS project.
- Repository
Name string Specifies the name of the git repository.
- Root
Folder string Specifies the root folder within the repository. Set to
/for the top level.- Tenant
Id string Specifies the Tenant ID associated with the VSTS account.
- account
Name string Specifies the VSTS account name.
- branch
Name string Specifies the branch of the repository to get code from.
- project
Name string Specifies the name of the VSTS project.
- repository
Name string Specifies the name of the git repository.
- root
Folder string Specifies the root folder within the repository. Set to
/for the top level.- tenant
Id string Specifies the Tenant ID associated with the VSTS account.
- account_
name str Specifies the VSTS account name.
- branch
Name str Specifies the branch of the repository to get code from.
- project
Name str Specifies the name of the VSTS project.
- repository
Name str Specifies the name of the git repository.
- root
Folder str Specifies the root folder within the repository. Set to
/for the top level.- tenant_
id str Specifies 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.