Flow
The flow resource definition. Uses Azure REST API version 2024-09-27. In version 2.x of the Azure Native provider, it used API version 2023-10-11-preview. Other available API versions: 2023-10-11-preview, 2024-01-25, 2024-05-07, 2024-09-11, 2025-03-01-preview, 2025-04-11-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azuredatatransfer [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Creates or updates the flow resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var flow = new AzureNative.AzureDataTransfer.Flow("flow", new()
{
ConnectionName = "testConnection",
FlowName = "testFlow",
Location = "East US",
Properties = new AzureNative.AzureDataTransfer.Inputs.FlowPropertiesArgs
{
Connection = new AzureNative.AzureDataTransfer.Inputs.SelectedResourceArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection",
},
FlowType = AzureNative.AzureDataTransfer.FlowType.Standard,
StorageAccountName = "testsa",
StorageContainerName = "testcontainer",
},
ResourceGroupName = "testRG",
});
});
package main
import (
azuredatatransfer "github.com/pulumi/pulumi-azure-native-sdk/azuredatatransfer/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuredatatransfer.NewFlow(ctx, "flow", &azuredatatransfer.FlowArgs{
ConnectionName: pulumi.String("testConnection"),
FlowName: pulumi.String("testFlow"),
Location: pulumi.String("East US"),
Properties: &azuredatatransfer.FlowPropertiesArgs{
Connection: &azuredatatransfer.SelectedResourceArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection"),
},
FlowType: pulumi.String(azuredatatransfer.FlowTypeStandard),
StorageAccountName: pulumi.String("testsa"),
StorageContainerName: pulumi.String("testcontainer"),
},
ResourceGroupName: pulumi.String("testRG"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azuredatatransfer.Flow;
import com.pulumi.azurenative.azuredatatransfer.FlowArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.FlowPropertiesArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.SelectedResourceArgs;
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) {
var flow = new Flow("flow", FlowArgs.builder()
.connectionName("testConnection")
.flowName("testFlow")
.location("East US")
.properties(FlowPropertiesArgs.builder()
.connection(SelectedResourceArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection")
.build())
.flowType("Standard")
.storageAccountName("testsa")
.storageContainerName("testcontainer")
.build())
.resourceGroupName("testRG")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azuredatatransfer:Flow myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureDataTransfer/connections/{connectionName}/flows/{flowName}
Properties
The Azure API version of the resource.
The managed identity of the flow resource, if configured.
Plan for the resource.
Properties of flow
Azure Resource Manager metadata containing createdBy and modifiedBy information.