Skip to main content

Run a classification scan

Run a classification scan to get tag suggestions for the columns in your tables that look like personal data. You set it up once as two jobs, then run them when you need or on a schedule.

Prerequisites​

How scans work​

A scan uses two jobs on the query service of your Lakehouse:

Job typeWhat it does
Metadata IngestionReads the catalogs, schemas, tables, and columns. Run it first, and again after tables or columns change.
Auto ClassificationReads column names and sample rows, checks them with the recognizers of the tags that are ready for scan, and adds suggestions to Generated Suggestions.
  • Each service can have one Metadata Ingestion job and one Auto Classification job. Your Lakehouse may already have them. If a job of the type you need exists, edit it instead of creating one.
  • An Auto Classification job runs only if at least one of the last 5 Metadata Ingestion runs succeeded. The Jobs & Configuration tab shows the latest success, for example Last metadata success · 11/18/2026, 10:00:07 AM.
  • You cannot delete a job. You cannot change its Type or Service after you create it.
  • An Auto Classification scan reads sample rows to classify them but does not store them.

Create a scan job​

  1. In the left sidebar, select Tagging → Classification Scans.
  2. On the Jobs & Configuration tab, select Create Job.
  3. In Type, select Metadata Ingestion or Auto Classification.
  4. In Service, select the query service of your Lakehouse.
  5. Enter a Job name and, optionally, a Description.
  6. Optional: limit what the job reads with the include and exclude boxes. See the table below.
  7. Optional: enter a Schedule and check the Timezone.
  8. For an Auto Classification job, check Sample rows and Classification language.
  9. Select Create Job.

Create Job dialog with Type Auto Classification, the service, a job name, and a schema filter

FieldWhat to enter
Database includes, Database excludesCatalogs to read or skip. One regular expression per line, for example ^sales$. Leave the box empty to read every catalog.
Schema includes, Schema excludesSchemas to read or skip, in the same way.
Table includes, Table excludesTables to read or skip, in the same way.
Match on fully qualified nameOff by default, so the expressions match short names such as customers. Turn it on to match the full name of each object instead.
Include viewsOn by default. Turn it off to skip views.
ScheduleA cron expression in Timezone, for example 0 2 * * * for 02:00 every day. Leave it empty to run the job only with Run now.
TimezoneUTC by default.
Sample rowsAuto Classification only. The number of rows read from each table, 1 to 50. The default is 50.
Classification languageAuto Classification only. The default is en. With any, the scan runs every recognizer whatever its language. With a language code, it runs only the recognizers for that language.

The portal checks Sample rows when you select Create Job. With a value outside 1 to 50, the field shows Sample rows must be a whole number from 1 to 50., the dialog stays open, and no job is created.

Deploy and run a job​

The Jobs & Configuration tab lists each job with its Job name, Type, Service, Schedule, Scope, and Status. Schedule shows the cron expression, or Manual only for a job without a schedule. Scope sums up the include and exclude filters.

Jobs and Configuration tab with a Metadata Ingestion job and an Auto Classification job, each with Edit, Deploy, and Run now

  1. In the row of the Metadata Ingestion job, select Deploy. Deploy makes the job ready to run with its current settings. It does not start a run.
  2. Select Run now, or wait for the schedule.
  3. Open the Run History tab and wait until the run shows Succeeded.
  4. In the row of the Auto Classification job, select Deploy.
  5. Select Run now, or wait for the schedule.

After the Auto Classification run succeeds, review its suggestions. See Review tag suggestions.

To change a job, select Edit, change the fields, then select Save changes. Type and Service are read-only in Edit Job.

Check the run history​

  1. Open the Run History tab.
  2. Optional: type a job name, type, or run ID in Search runs.
  3. Optional: filter by Job or State.

Run History tab with runs in the Succeeded, Failed, and Unknown states

The newest runs come first, 50 per page. Each row shows the Job / type, when the run Started, its Duration, its State, and the Operation / run IDs. You cannot filter by date.

StateMeaning
QueuedThe run waits to start.
RunningThe run is in progress.
SucceededThe run finished.
Partial successThe run finished, but part of it failed.
FailedThe run did not finish. Check the job settings and run it again.
UnknownThe portal could not confirm the outcome. This is not a success.

When you cannot run a job​

SituationWhat to do
A run of this job is still in progress. The portal shows Pipeline already has active Portal operation <ID>, or Metadata Ingestion has an active Portal operation when you run the Auto Classification job.Wait until the run ends in Run History, then run the job again.
The job finished a run less than 30 seconds ago.Wait a moment, then select Run now again.
Auto Classification only: none of the last 5 Metadata Ingestion runs succeeded, or one is still running.Run the Metadata Ingestion job and wait for Succeeded.
You try to create a second job of the same type for the service.Edit the existing job instead.

Next steps​