LIVE · Thursday 3 December

Azure Custom Text Classification Retires March 31, 2029: The Alternatives and How to Test Them

Training on the current Azure configuration ends March 31, 2028. Foundry models, Azure ML AutoML, Amazon Comprehend and SetFit can replace it, but only a held-out test on your own labels shows which one fits.

By Thomas14 min read

Azure custom text classification retires from Azure Language on March 31, 2029, and Microsoft's lifecycle table ends training on its current configuration a year earlier, on March 31, 2028. The supported alternatives are Microsoft Foundry models, either prompted with your categories or fine-tuned on your labels, Azure Machine Learning AutoML, Amazon Comprehend custom classification and the open-source SetFit library. None of them accepts the old API calls. Each one needs your labels converted and a held-out test on your own documents before you switch.

Microsoft has set two dates, and the first one stops retraining in March 2028

The retirement notice sits at the top of the service's overview page. As of November 24, 2026, it states that custom text classification "retires from Azure Language on March 31, 2029." It also asks teams to migrate existing workloads and to start all new projects in Microsoft Foundry.

The earlier date matters more for planning. Microsoft's model lifecycle page lists training configuration 2022-05-01 as the latest one for custom text classification. That configuration expires on March 31, 2028, and deployments made with it expire on March 31, 2029. After the first date, a training request that names the expired configuration returns an error. After the second date, the deployed model stops answering prediction requests.

The lifecycle page adds one qualification. For the latest configurations, the posted dates depend on whether Microsoft releases a newer model version, and the dates may be extended if it does not. That is a possible extension, not a promise, so a plan should treat March 31, 2028 as the last day to retrain an Azure model.

The same page lists the custom text classification REST API under "legacy capabilities." Its newest generally available API version is still 2022-05-01.

Google went through the same change earlier. A Vertex AI release note dated June 18, 2024 stated that from September 15, 2024, classification could be customized only through Gemini prompts and tuning. Existing AutoML Text models could be used until June 15, 2025. A team that is weighing Google Cloud should therefore compare Gemini prompting or tuning, because the old AutoML Text service is gone.

Microsoft's own replacement is a Foundry model that you prompt or fine-tune

Microsoft's transition guidance, a Foundry blog post dated June 10, 2026, covers eight Azure Language features that "will begin deprecating." For custom text classification, it describes fine-tuning a foundation model on your labeled data. It recommends Ministral-3B, which it describes as Apache 2.0 licensed, and lists gpt-oss-20b and Llama-3.3-70B-Instruct as other models to fine-tune.

The post's steps are short. You export your labeled samples, remove duplicates and inconsistent labels, and fine-tune in the Foundry portal or SDK. Then you deploy the model, test it through its REST endpoint, and point your application at it. The post states that the output can mirror the original service's JSON structure. It shows a result of {"category": "Complaint", "confidenceScore": 0.98}.

That is a change of architecture, not a version upgrade. The old service was a classifier with a fixed set of classes. A fine-tuned language model writes its answer as text. Any confidence number that appears in that text is generated output, so it should be tested before anyone treats it as a probability.

The post also leaves gaps. It does not specify an export file format, a minimum number of examples per class or how to handle multi-label projects. Those are the decisions a migration team has to make for itself.

The other Foundry route skips training. A general model receives your category definitions in the prompt and returns one of them. Foundry's structured outputs feature makes a model follow a JSON Schema that you supply, and the schema can restrict the answer to an enum of your category names. Microsoft's list of models that support structured outputs includes gpt-4.1-nano and gpt-5-mini.

Five replacements differ in label modes, retraining effort and who runs the servers

The options fall into three groups. Comprehend is a managed classifier on another cloud. Foundry offers language models that are prompted or fine-tuned. AutoML and SetFit train a dedicated encoder model that your team deploys. The table compares what the providers document.

Option Label modes When labels change Who runs serving
Amazon Comprehend Single-label and multi-label Retrain the classifier AWS, as an endpoint or async jobs
Foundry model, prompted Whatever the schema allows Edit the prompt and the schema Microsoft
Foundry model, fine-tuned The output format you train Retrain and redeploy Microsoft, as a deployment you manage
Azure ML AutoML Multiclass and multilabel Retrain Your team, on Azure ML compute
SetFit Single-label and multilabel heads Retrain with a few examples Your team, anywhere
Parsec TOD (v1 release, September 2026) One choice from supplied options Change the options list per request Parsec at a per-decision price, or your team with the published adapters

Amazon Comprehend is the closest match in shape. Its console offers a single-label mode, which its API calls multi-class mode, and a multi-label mode for categories that can apply together. It trains on plain text or on native PDF, Word and image documents. Its quotas allow 2 to 1,000 classes in multi-class mode and 2 to 100 in multi-label mode. A CSV training file needs at least 50 documents per class in multi-class mode. In multi-label mode, it needs at least 10 per class and 50 in total. Real-time classification requires an endpoint, and AWS charges for that endpoint from the time it starts until you delete it.

Azure ML AutoML keeps a dedicated classifier inside Azure. Its documentation lists multiclass and multilabel text classification, trained from a CSV file on GPU compute. AutoML requires at least 50 training samples, and it trains one model per run for NLP tasks. The default models are BERT variants, with a multilingual model for languages other than English and German. Model sweeping and hyperparameter tuning are still in public preview, and Microsoft does not recommend preview features for production.

SetFit is a Hugging Face library that trains a small classifier from few examples. It first fine-tunes a sentence-embedding model on pairs of sentences from the same class and from different classes. Then it trains a simple classifier head, which is logistic regression by default. Its documentation reports that with 8 labeled examples per class on one sentiment dataset, SetFit is "competitive with" fine-tuning RoBERTa Large on 3,000 examples. That is one dataset, so it shows what SetFit can do and does not predict your results. Multilabel classification is set with a multi_target_strategy such as "one-vs-rest".

Parsec, a small language model lab, publishes a decision model called TOD that can be tested as a candidate for single-choice routing. Its predict(state, options, question) call returns one probability for each option you supply, and the probabilities sum to 1. Parsec's repo states that it was measured with up to 300 options. The TOD page prices decisions at $0.30 per 1,000, flat regardless of context length. Parsec presents TOD as a model that picks an assistant's next action, not as a document classifier. It has published no results on document classification, and its TOD figures come from its own release evaluation. The release consists of LoRA adapters on google/gemma-4-12B-it, and users must accept the Gemma 4 licence to load the base model. Its TOD page does not describe deployment options, and Parsec's decision-models page publishes no price for custom tuning.

Your existing labels convert to each interface with a short script

The migration starts from the Azure labels file. In a multi-label project, each document entry lists a location, a language, a dataset value of Train or Test, and an array of classes. A single-label project uses one class object instead. Take one support ticket as the example.

{"location": "t-1042.txt", "language": "en-us", "dataset": "Test",
 "classes": [{"category": "Billing"}, {"category": "Bug"}]}

The ticket text reads: "I was charged twice this month and the app crashes when I open the billing page." Each candidate needs that record in its own shape.

  • For Amazon Comprehend, a multi-label CSV puts the labels first, joined by the default pipe delimiter: BILLING|BUG,"I was charged twice...". A multi-class file puts a single label in the first column.
  • For Azure ML AutoML, a CSV has a text column and a labels column. Use the Python-list format, "['Billing','Bug']", because the plain-text format treats every character other than letters, digits and _ as a separator. A label such as cs.AI would otherwise become two labels.
  • For SetFit, the dataset needs text and label columns. The multilabel guide does not state the label format, so check the trainer documentation before you build the file.
  • For a fine-tuned Foundry model, each line of training.jsonl holds one conversation. The system message lists the categories, the user message holds the ticket, and the assistant message holds the answer, such as {"categories": ["Billing", "Bug"]}.
  • For a prompted Foundry model, the categories go into a strict JSON Schema. A single-label project uses a string with an enum of category names. A multi-label project uses an array whose items are that enum.
  • For Parsec's TOD, the ticket text becomes the state, the category names become the options list and the routing question becomes the question.

Single-choice scoring and multilabel targets need separate rules for thresholds and unknown labels

A single-label classifier always returns one class. Azure's own metrics page notes that its single-label models always predict one class for each document. That makes the question of a wrong answer simple, but it hides uncertainty. The fix is a confidence threshold below which the document goes to a fallback, such as a person or the old model.

A multilabel classifier decides each label separately, so it needs a threshold for each label. AutoML's documentation describes that trade directly. A lower threshold assigns more labels and improves recall, and a higher threshold assigns fewer labels and improves precision. Thresholds should be tuned on a validation set and then frozen before the test.

Each interface handles unknown labels differently. A strict Foundry schema cannot return a category outside its enum, so the enum should include an explicit "Other" or "Unsure" value. Foundry's structured outputs do not support minItems or uniqueItems, so an empty or duplicated multilabel array has to be caught in your own code. TOD returns a distribution over the options you pass, so it suits single-choice questions. Using it for multilabel targets would mean asking one yes-or-no question per label, and that approach has not been measured.

Abstention should be designed into the output, not inferred later. Every candidate should be able to answer "unsure," and the test should report how often it does.

A fair comparison runs every candidate on one held-out set and records the same measures

The Azure model is still running, which makes it the baseline. Take the documents marked Test in the labels file, or a fresh labeled sample of recent traffic, and keep them out of all training and prompt examples. Run the Azure model and each candidate on that set. Then record the following measures for each one.

  1. Record precision and recall for each class, because an average can hide a class that fails completely.
  2. Record macro-F1, which weights every class equally, so rare classes count as much as common ones.
  3. Check calibration by grouping predictions by stated confidence and comparing that confidence with the share that were correct.
  4. For multilabel targets, record precision and recall at the frozen thresholds, plus the share of documents that receive no label.
  5. Record median and 95th-percentile latency, together with the hardware, region and model version.
  6. Record total monthly cost at your real volume, including any endpoint that bills while idle.

Results for TOD, whose adapters sit on gemma-4-12B-it, should be reported apart from compact encoders such as SetFit's bge-small-en-v1.5 or AutoML's BERT models, because their hardware and costs differ. No held-out comparison of these options on the same documents has been published by any of the providers, and the Tribune has not measured one.

At one million documents a month, per-record pricing is the largest cost difference

List prices show where the money goes. The sample workload is 1 million documents a month, each 2,000 characters long. At an assumed 4 characters per token, each document is about 500 tokens. A prompted model also reads 1,000 tokens of category definitions and writes about 20 tokens.

  • Azure custom text classification today bills $5.00 per 1,000 text records in East US, according to Azure's retail price list. A text record holds up to 1,000 characters, so each document counts as two records. The monthly bill is about $10,000, plus $0.50 for hosting.
  • Amazon Comprehend asynchronous jobs bill $0.0005 per 100-character unit. Each document is 20 units, so the month costs about $10,000, plus $0.50 for model storage.
  • An Amazon Comprehend real-time endpoint needs about 772 characters per second on average, which means 8 inference units at 100 characters per second each. At $0.0005 per unit per second, that is about $10,368 for a 30-day month, whether or not traffic arrives.
  • A prompted gpt-4.1-nano deployment on Azure's Global tier costs $0.10 per million input tokens and $0.40 per million output tokens. The month costs about $158. If the definitions are billed at the $0.025 cached-input rate, it costs about $83. Through the Batch API, it costs about $79.
  • A SetFit or AutoML model on Azure ML costs only the compute, because Azure states that there is no extra charge for Azure Machine Learning. One Standard_DS3_v2 instance costs $0.293 an hour, or about $211 for 720 hours. One Standard_NC4as_T4_v3 GPU instance costs $0.526 an hour, or about $379.
  • Parsec's TOD at $0.30 per 1,000 decisions costs about $300 for one single-choice decision per document.

Whether one Azure ML instance can carry this traffic has not been measured. Fine-tuned Foundry deployments carry their own hosting charges, which differ by model and are left out here. The pattern is still clear. On this workload, both managed per-record classifiers cost roughly 26 to 131 times more than a small prompted model or a self-hosted encoder. A cheaper option is only a saving if it also passes the accuracy test.

The right choice depends on how often your labels change and where the model must run

The comparison above narrows the field. The situation narrows it further.

  • If your categories change every few weeks, start with a prompted Foundry model, because a new category is an edit to the prompt and the schema. For single-choice routing, TOD is a candidate to test in the same situation, because the options list is part of each request.
  • If your taxonomy is stable and you have thousands of labeled documents, a trained classifier is the natural successor. Choose AutoML or a fine-tuned Foundry model to stay on Azure, or Comprehend if AWS hosting is acceptable.
  • If you have fewer than about 15 labeled examples for some classes, SetFit or a prompted model is the better starting point. Azure's own guidance warns that classes with fewer than 15 labeled instances can lead to lower accuracy.
  • If the model must stay inside Azure, the candidates are Foundry, AutoML and SetFit on Azure ML compute. Comprehend runs on AWS.
  • If a handful of keywords or sender fields already decide most documents, rules can handle those documents, with a model kept for the rest.

Custom training is justified when the measured errors of an untuned model fall in specific classes that labeled examples can fix. If a prompted model already matches the Azure baseline on your held-out set, the extra training and hosting buy nothing.

A staged cutover keeps the Azure model as the rollback until the replacement is proven

The Azure deployment can keep answering until March 31, 2029. That leaves time for a careful cutover, provided the work starts well before the training deadline.

  1. In the first quarter of 2027, export the labels file and build the held-out test set. Record the Azure model's predictions on it as the baseline.
  2. Next, convert the labels for two or three candidates and run the comparison above. Agree on a pass mark, such as no class losing more than a set amount of recall, before you see the results.
  3. Then run the chosen candidate in shadow on live traffic, with Azure still serving. Log every disagreement and have a person label a sample of them.
  4. Define a fallback for low-confidence or "unsure" answers. The fallback can be the Azure model while it runs, a human queue, or both.
  5. Switch traffic behind a configuration flag, so rollback is a single change. Keep the Azure deployment live as the rollback target.
  6. After cutover, monitor per-class precision and recall on a sample that people relabel each week. Watch the rate of "unsure" answers and any shift in the label mix.
  7. Before you commit, verify deployment and support terms for every component. Check the region, data residency, service-level agreement and who supports it. Open-source libraries such as SetFit come with no vendor support.

A classifier score should route a document, not authorize an action. Where a label triggers a refund, a deletion or a legal step, a rule or a person should still approve the action. Any Azure retraining that the plan depends on has to finish before March 31, 2028.

Sources

More in Products

All Products →