Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 666 Bytes

File metadata and controls

17 lines (13 loc) · 666 Bytes

Realtime Deidentification

This sample demonstrates how to create a job which will deidentify all files within a blob storage container filtering via a prefix.

Create Job and Check Status

DeidentificationJob job = new()
{
    SourceLocation = new SourceStorageLocation(new Uri(storageAccountUrl), "folder1/"),
    TargetLocation = new TargetStorageLocation(new Uri(storageAccountUrl), "output_path"),
    Operation = DeidentificationOperationType.Surrogate
};

job = client.DeidentifyDocuments(WaitUntil.Started, "my-job-1", job).Value;
Console.WriteLine($"Job status: {job.Status}"); // Job status: NotStarted