Blog Post

Startups at Microsoft
15 MIN READ

AI on Azure 101: Training, fine-tuning, inference, and where everything lives

rmmartins's avatar
rmmartins
Icon for Microsoft rankMicrosoft
Oct 30, 2026

AI on Azure series, Part 1 of 5

"We want to build something with AI on Azure. Do we need to train a model? Should we use Foundry or Azure Machine Learning? Where does Fireworks fit?"

They often come up together, but each points to a different decision. You might use an existing model, adapt one to your task, or train a new model. You also need to decide how the application will use it.

An API is one way to use a model. It does not tell you who trained or operates that model. A model your team trains can also expose an API.

This guide is for developers who know applications and APIs but are new to AI on Azure. We'll use a fictional support application with two needs: predicting ticket priority and drafting a response. The example uses both a predictive model and a pretrained language model.

We'll look at training, fine-tuning, prompting and retrieval, then compare the roles of Microsoft Foundry, Fireworks on Foundry and Azure Machine Learning. The final sections show how those services fit into Azure's resource hierarchy.

Product details were checked against Microsoft documentation on October 29, 2026. Preview features are not generally available. This guide explains the concepts and first design choices; it is not a deployment tutorial or a full service catalog.

1. AI is broader than generative AI

Artificial intelligence, or AI, covers systems that perform tasks associated with human intelligence, such as recognizing images or understanding language. Machine learning (ML) is a part of AI in which models learn patterns from data. Deep learning is a subset of ML that uses multilayer neural networks.

Generative AI produces content, such as text, images, or audio. A large language model, or LLM, is one example. Generative AI describes one part of machine learning, not the whole field.

What the application needsExample taskA model approach to evaluate
Assign a categoryPredict whether a ticket is billing, account access, or a product issue.Classification
Predict a numberEstimate the number of tickets expected tomorrow.Regression or time-series forecasting
Generate contentDraft a response using the ticket and the current support policy.A generative model

A task can have more than one implementation. A language model can classify text too. Compare quality, cost and operational requirements before choosing.

For our support application, a trained classifier might predict priority while a hosted language model drafts a reply. They can be parts of the same application without sharing a training or deployment workflow.

Microsoft's AI, machine learning, and deep learning overview explains the terminology. The Azure Machine Learning overview covers both predictive ML and generative AI workflows.

2. Training creates a model. Inference uses one.

A model contains learned parameters, often called weights in neural networks. Training adjusts those parameters based on data. For large language models, pretraining creates the base model. An application team can start with an existing pretrained model.

Inference is the act of using a trained model on new input to produce output. Asking a language model to summarize a support ticket is inference. Classifying an image or predicting a numerical value are also inference tasks.

Fine-tuning trains a pretrained model further on task-specific data and changes its learned parameters. Another option is to add instructions to each request. Full-weight updates and adapter-based methods also differ, and support depends on the model and service.

ActivityWhat happensSupport-assistant example
Training a new modelThe training process learns a model's parameters from data.Your team trains a ticket classifier; a model provider pretrains a base language model.
Fine-tuningAdditional training adapts an existing model to a task.A team trains on reviewed ticket examples to improve a particular response format.
InferenceA model processes new input and returns output.The application sends a new ticket and receives a draft response.
Figure 1. You can start with a pretrained model. Fine-tuning is optional.

For our assistant, I would first evaluate an existing model on representative, non-sensitive tickets. If it does the job, we can skip a training workflow.

Microsoft's machine learning overview describes training, testing, deployment, and consumption. The Foundry fine-tuning overview explains customization methods and why improvements must be measured, not assumed.

3. What training looks like on Azure

Training a ticket classifier and pretraining a large language model require very different amounts of data and compute. A training project does not automatically need a large GPU cluster.

For a custom ML workflow, Azure Machine Learning provides a place to organize data references, environments, training jobs, metrics, and model versions. You can bring code built with frameworks such as scikit-learn, PyTorch, or TensorFlow. You do not have to replace those frameworks with an Azure-specific learning algorithm.

A training job needs more than a dataset

Suppose we want a model to predict ticket priority from historical examples. A practical workflow includes:

  1. Define the target and prepare the data. Decide what "priority" means, review label quality, and check that inputs would actually be available when a new ticket arrives.
  2. Keep training, validation, and final test data separate. Fit the model on the training data, use validation results to choose settings, and reserve unseen test examples for the final comparison. A good training score alone is not evidence that the model works on new tickets.
  3. Submit a training job with the code, execution environment, data inputs, and settings. Azure ML runs it on the selected compute and records outputs. The job runs the training work; it does not create an always-running inference endpoint.
  4. Compare the candidate against a baseline using task-appropriate metrics. For the ticket classifier, inspect the kinds of mistakes it makes, not only an aggregate score.
  5. Register a chosen model version, then deploy it when it meets the acceptance criteria. The model artifact and its production endpoint are separate things.
Figure 2. A simplified Azure ML training workflow. Teams iterate between these steps; an unsuccessful evaluation sends the candidate back for more work rather than into production.

The environment specifies the software dependencies needed to run the code. Hyperparameters are settings chosen for a training run, such as a learning rate or an algorithm-specific configuration; they are different from the parameters the model learns.

Azure ML integrates with MLflow for experiment tracking. Record the training configuration and evaluation results so you can trace a deployment to the run that produced it. Automated ML can explore supported algorithms and configurations, but you still need a useful target, sound data and independent evaluation.

Choose training compute separately from serving compute

Azure ML compute clusters support CPU and GPU nodes and can run single-node or distributed workloads. The choice depends on the algorithm, data, model size, and training approach. GPUs are common in deep learning; they are not a requirement for every ML task.

A larger training job may need distributed execution across multiple machines. That introduces framework and communication requirements, as well as a capacity question. Check current hardware availability, quota, and regional support before designing around a particular accelerator.

The resources used for training do not have to remain running to serve every prediction. Deploy the selected artifact using an appropriate inference configuration.

Azure ML can train a predictive model or adapt a pretrained deep learning model. Training a foundation model from scratch takes far more work and usually is not where an application team starts when building a support assistant.

For the execution model, see submitting Azure ML training jobs and compute clusters. The Azure ML lifecycle overview describes training, experiment tracking, model deployment, and MLOps, the practices used to operate ML models over time.

4. Fine-tuning, prompting, and retrieval solve different problems

Suppose the assistant needs to answer questions about a return policy that changes every month. You can put relevant policy text into the request. A retrieval-augmented generation, or RAG, workflow retrieves relevant material and supplies it as context for generation.

Retrieval does not fine-tune the model. The documents inform the current response; they do not become learned weights.

For this example, I would investigate prompting and retrieval before fine-tuning. If the problem is consistent formatting or task behavior, fine-tuning may be worth testing. If the problem is access to the latest policy, retrieval addresses a different need. The two approaches can also be used together.

Fine-tuning still needs good training data and a separate evaluation set. It adds training and possibly hosting costs. It does not make answers correct by itself or replace application safety controls.

Fine-tuning through Foundry

For supported models, Foundry managed fine-tuning lets you submit training data and settings while Foundry manages the training infrastructure. You do not provision the training GPUs yourself.

For example, supervised fine-tuning uses prompts paired with desired responses. Other supported methods learn from preferences or graded responses. The available method, model version, training location, and serving option must be checked together; a model listed in the catalog is not automatically eligible for every customization method.

Foundry also offers interactive training (Preview) for practitioners who need lower-level control of training steps. It has separate access and support conditions. A beginner can start without it.

After fine-tuning, evaluate the resulting model and choose a supported deployment. Where you train and where you serve are separate decisions. A Foundry fine-tuning job, an Azure ML training job, and an inference deployment are not interchangeable objects.

See Microsoft's RAG overview and fine-tuning guidance for the distinction.

5. Where Foundry, Fireworks, and Azure Machine Learning fit

These names refer to different platforms and an integration. Their roles can overlap.

Service or integrationIts role in this guideWhere training fitsWhere inference fits
Microsoft FoundryBuild applications with models, agents, and tools; evaluate and govern them.Managed fine-tuning for supported models, plus interactive training (Preview).Supported catalog-model APIs and custom-model deployment options.
Fireworks on Microsoft FoundryUse the Fireworks serving runtime through its Foundry integration.Importing already-trained weights is not itself a training job. Do not assume the integration is a general-purpose training platform.Supported open models and compatible custom weights, subject to model and deployment compatibility.
Azure Machine Learning (Azure ML)Develop, train, track, deploy, and operate ML models.Custom training jobs, supported automated ML workflows, and adaptation of pretrained models.Managed online and batch endpoints, including custom-model workflows.

Foundry is a useful starting point for a team building with supported foundation models. It is broader than a model API catalog, and it also has customization options. You can start with one model call without first building an agent or training a model.

Fireworks on Foundry is one of those integrated model-serving paths. It supports offered models and compatible imported weights, including weights you have already fine-tuned. Importing weights is a deployment operation; it should not be confused with creating those weights through training.

Azure Machine Learning is more than an alternative place to host an endpoint. Its training jobs and model lifecycle tools matter when your team owns the ML workflow. It also supports generative AI work, so "Foundry for LLMs, Azure ML for everything else" is too rigid a division.

Azure Machine Learning is not the only managed ML environment. Azure Databricks supports data science, model training, and serving in its data platform. Microsoft Fabric Data Science works with data in OneLake and supports notebook-based experimentation and modeling. These platforms solve broader data and ML workflow needs; they are not interchangeable with a hosted model API. The existing data platform and the team's workflow are good reasons to compare them.

For the support application, we could evaluate a hosted language model in Foundry and train our priority classifier in Azure ML. If we later need Fireworks to serve compatible custom language-model weights, we can evaluate that option then.

These roles follow the Foundry overview, Azure ML overview, Azure Databricks machine learning overview, Fabric Data Science overview, and Fireworks custom-model documentation.

6. "Via API" does not tell you who runs the model

An API is how your application talks to the service. It does not tell you whether Microsoft, a partner, or your team operates the inference runtime.

A few terms help:

  • A model is the learned artifact or model family you want to use.
  • A deployment makes a particular model and serving configuration available for use.
  • An endpoint is the address your application calls.
  • The inference runtime loads and executes the model. A custom model does not necessarily require a custom runtime.

With a model-as-a-service (MaaS) offer, the provider operates the model-serving infrastructure and exposes an API. Your team still owns the application, model choice, evaluation, access controls, and the data-handling review.

The relationship between endpoints and deployments varies by service. An Azure Machine Learning online endpoint, for example, can route traffic across multiple deployments. Check each service's terminology rather than assuming it works the same way everywhere.

Figure 3. These are responsibility patterns, not mutually exclusive product categories. Foundry has both catalog-model and custom-model options.

For the support assistant, here are the paths I would consider:

Starting needAzure path to investigateWhat your team still decides
Call a supported, already-hosted modelMicrosoft Foundry serverless APIs, including Azure OpenAI models and supported partner offersModel/version, deployment type, access, processing location, evaluation, and usage
Use supported open models or import compatible weights through the Fireworks runtimeFireworks on Microsoft FoundryModel compatibility, deployment option, throughput requirements, and suitability of partner data handling
Run a supported open-weight model on Foundry-managed GPU infrastructureFoundry Managed Compute (Preview)No SLA and not recommended for production; its quota is separate from Azure VM quota, and built-in content filtering is not in the preview data path
Deploy a custom model with an ML-oriented deployment workflowAzure Machine Learning managed online or batch endpointsModel, environment/scoring logic, compute configuration, and rollout strategy
Bring your own model-serving container without operating a Kubernetes clusterAzure Container Apps serverless GPUsContainer, inference engine, model fit, scaling behavior, and application operations
Control a Kubernetes-based serving stackAzure Kubernetes Service (AKS)Serving engine, workload configuration, and operational responsibilities appropriate to the cluster mode

A small custom classifier and a large language model may need different hosting approaches. Model size, supported accelerators, traffic pattern and operational requirements can narrow the options.

Fireworks is integrated into Foundry, but inference uses Fireworks' runtime and GPU infrastructure. Microsoft's documentation says data is shared between Microsoft and Fireworks. The integration is excluded from EU Data Boundary commitments, has not achieved FedRAMP, and PCI DSS does not apply. Microsoft does not develop or evaluate the safety of models deployed through Fireworks, so customers need to assess model suitability and risk themselves.

The general Fireworks on Foundry integration is GA. That does not make every feature GA: LoRA adapters and deploying a model fine-tuned in Foundry through the Fireworks runtime are Preview, without an SLA and not recommended for production. Importing full custom model weights is a separate workflow. The Azure portal uses a Preview Features registration to enable the GA integration; that portal label is not the service's lifecycle status.

Foundry Managed Compute is also Preview, without an SLA and not recommended for production. Its managed GPU quota is separate from Azure VM quota. Built-in content filtering is not part of its current preview data path.

Sources: Foundry deployment overview, Foundry managed compute, fine-tuned model deployment options, Fireworks integration, custom model import, Azure ML endpoint concepts, managed online endpoints, Container Apps serverless GPUs, and AKS overview.

7. Serving pattern and billing are separate decisions

Our support assistant might need to answer one ticket while a user waits. An overnight job summarizing an archive can wait for asynchronous results. Both perform inference, but they have different response-time requirements.

Azure ML online endpoints serve synchronous requests; batch endpoints create jobs for longer-running asynchronous processing. Foundry also has Batch deployment types for supported models, but a Foundry Batch API and an Azure ML batch endpoint are different services, not two labels for the same feature.

Billing also needs its own question:

Billing approachWhat to understand before choosing
Pay-per-token inferenceUsage depends on the model's token meters and applicable additional charges.
Provisioned throughputYou provision throughput capacity, expressed as provisioned throughput units (PTUs) in supported Foundry offers; sizing depends on the model and workload.
Training jobs and compute-based hostingBudget for the applicable training compute or managed training charges, separately from serving. Idle time, scaling, and job execution behavior matter.

You can use a pretrained model without paying to train a new one. Inference and related services still cost money.

For a custom model, budget for data preparation, repeated training and evaluation, artifact storage, and production serving. Managed fine-tuning can have training and hosting charges, even if your team never provisions a GPU directly.

Serverless inference still has a cost, and models do not all support the same billing options. A PTU is provisioned throughput capacity; you do not administer a GPU. The training method also does not determine how you serve the resulting model.

Processing location is another choice. For Foundry serverless deployments, Global, Data Zone, and geography-based types have different processing boundaries. The region of the Azure resource alone is not enough to determine where inference processing occurs. Partner offers require their own data-handling review.

Before recommending a deployment, check the exact model/version, supported region and deployment type, quota and capacity requirements, and feature status.

Use the Foundry deployment-type reference alongside the Azure ML endpoint comparison. For estimates, use the Foundry Models pricing page, Microsoft Foundry pricing, Azure Machine Learning pricing, and Azure Pricing Calculator as appropriate. Each service has its own pricing. Public rates are reference prices; your EA/MCA agreement and applicable offer may differ.

8. Where does this live in Azure?

The model lifecycle and Azure's resource hierarchy answer different questions. A subscription holds Azure resources; it does not deploy a model. A Foundry project is a service-specific scope, not a subscription.

Figure 4. Logical management scopes and an identity relationship. The diagram does not represent a network, processing region, or the commercial billing-account hierarchy.
TermWhat it means here
Microsoft Entra tenantThe directory supplying identities for access. Each Azure subscription trusts one tenant; a tenant can be associated with multiple subscriptions.
Management groupA governance scope above subscriptions, used to apply controls across them. An organization may have several levels; the diagram simplifies that tree.
SubscriptionTracks Azure resource management, access, and cost. It does not provide a model subscription or token package.
Resource groupA container for related resources, commonly grouped by lifecycle. Its resources can use separate networks and run in different regions.
Azure resourceA service instance, such as a Foundry resource, Azure ML workspace, or storage account.

For this fictional assistant, an organization might use separate development and production subscriptions, following its platform standards. That does not mean it needs a subscription for every model. Within an environment, group resources that should be managed and retired together.

Two resources in the same resource group do not automatically share access. Configure the required roles and service permissions. A resource group can contain resources in different regions, so its location does not force every resource to run there.

Microsoft documents these relationships in Azure Resource Manager, subscription-directory associations, and the resource organization guide.

Foundry projects and Azure ML workspaces add service-specific structure

With the Foundry resource model, the Foundry resource is an Azure resource. Foundry projects are development boundaries beneath it. Model deployments can be shared from the resource; not every deployment belongs exclusively inside a project.

An Azure Machine Learning workspace is a separate Azure resource for ML jobs, registered models, and endpoints. It sits alongside the Foundry resource in this example, not beneath a Foundry project.

Figure 5. One possible organization. The boxes show logical ownership, not physical storage.

A storage account or search service connected to a project remains a separate Azure resource with its own permissions and networking.

This diagram uses the Foundry resource model described in the current Foundry architecture guide, not the older hub-based project model. The Azure ML workspace guide explains that service's organization and associated resources.

9. Choose a first experiment that matches the task

For the reply-drafting feature, I would start with a small hosted-model evaluation unless there is already a requirement it cannot meet. For a predictive model we intend to own, I would start with a reproducible training baseline.

Your immediate goalA sensible first experiment
Generate useful draft repliesCompare a supported hosted model against representative tickets; introduce retrieval if it needs current policy information.
Train a priority classifierPrepare labeled examples, separate evaluation data, and run a baseline training job in Azure ML.
Adapt an existing language model's behaviorCompare prompting against supported fine-tuning on held-out examples before committing to training.
Serve weights your team already ownsCheck artifact, architecture, runtime, region, and deployment compatibility across the relevant Foundry, Fireworks, or Azure ML paths.

Pick a representative set of tickets and define what a useful response looks like. Record the model/version and deployment configuration, then measure response quality, response time, and cost per completed task. Keep sensitive data out of an experiment until its access and data-handling controls are approved.

For the trained classifier, retain the data and code references, environment, parameters, and evaluation results associated with the chosen model version. Plan how you will detect deteriorating quality and decide when to retrain. For a hosted model, record the provider's model/version and evaluate updates too.

I would consider custom hosting when testing shows a compatibility, control, or cost problem that a hosted service cannot address.

Before production, name owners for access, costs, and operations, then agree on a measurable acceptance test. A successful endpoint call is only a starting point. The model also needs to meet the workload's requirements for quality, processing location, performance, and day-to-day operations.

AI on Azure series

  1. Part 1: AI on Azure 101 (this article)
  2. Part 2: Models as a service
  3. Part 3: Platforms for apps and agents
  4. Part 4: Managed ML
  5. Part 5: When you own the infrastructure

Further reading

For a deployment-oriented comparison, see Inference Options on Azure: An Architect's View. For current product behavior and constraints, use the Microsoft Learn references linked throughout this guide.

References

Updated Oct 30, 2026
Version 6.0
No CommentsBe the first to comment