Change Data Capture
Change data capture resource type. Azure REST API version: 2018-06-01.
Example Usage
ChangeDataCapture_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var changeDataCapture = new AzureNative.DataFactory.ChangeDataCapture("changeDataCapture", new()
{
AllowVNetOverride = false,
ChangeDataCaptureName = "exampleChangeDataCapture",
Description = "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.",
FactoryName = "exampleFactoryName",
ResourceGroupName = "exampleResourceGroup",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewChangeDataCapture(ctx, "changeDataCapture", &datafactory.ChangeDataCaptureArgs{
AllowVNetOverride: pulumi.Bool(false),
ChangeDataCaptureName: pulumi.String("exampleChangeDataCapture"),
Description: pulumi.String("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings."),
FactoryName: pulumi.String("exampleFactoryName"),
ResourceGroupName: pulumi.String("exampleResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datafactory.ChangeDataCapture;
import com.pulumi.azurenative.datafactory.ChangeDataCaptureArgs;
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 changeDataCapture = new ChangeDataCapture("changeDataCapture", ChangeDataCaptureArgs.builder()
.allowVNetOverride(false)
.changeDataCaptureName("exampleChangeDataCapture")
.description("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings.")
.factoryName("exampleFactoryName")
.resourceGroupName("exampleResourceGroup")
.build());
}
}
Content copied to clipboard
ChangeDataCapture_Update
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var changeDataCapture = new AzureNative.DataFactory.ChangeDataCapture("changeDataCapture", new()
{
AllowVNetOverride = false,
ChangeDataCaptureName = "exampleChangeDataCapture",
Description = "Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.",
FactoryName = "exampleFactoryName",
ResourceGroupName = "exampleResourceGroup",
Status = "Stopped",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datafactory.NewChangeDataCapture(ctx, "changeDataCapture", &datafactory.ChangeDataCaptureArgs{
AllowVNetOverride: pulumi.Bool(false),
ChangeDataCaptureName: pulumi.String("exampleChangeDataCapture"),
Description: pulumi.String("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings."),
FactoryName: pulumi.String("exampleFactoryName"),
ResourceGroupName: pulumi.String("exampleResourceGroup"),
Status: pulumi.String("Stopped"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datafactory.ChangeDataCapture;
import com.pulumi.azurenative.datafactory.ChangeDataCaptureArgs;
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 changeDataCapture = new ChangeDataCapture("changeDataCapture", ChangeDataCaptureArgs.builder()
.allowVNetOverride(false)
.changeDataCaptureName("exampleChangeDataCapture")
.description("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings.")
.factoryName("exampleFactoryName")
.resourceGroupName("exampleResourceGroup")
.status("Stopped")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datafactory:ChangeDataCapture exampleChangeDataCapture /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}
Content copied to clipboard