Deploy an Azure OpenAI Model in Microsoft Foundry and Call It from .NET
This walkthrough deploys gpt-5.4-mini in Microsoft Foundry and calls it from a single C# file. Azure hosts the model, while the .NET app runs locally and sends a support ticket to the deployment for a one-sentence summary. I used North Europe and an API key for this example. The call uses the OpenAI v1 Chat Completions API through IChatClient . What you need You need an Azure subscription with…
This guide outlines the steps to deploy a gpt-5.4-mini model in Microsoft Foundry and call it from a .NET application. The example uses the North Europe region and an API key for deployment. The required components include an Azure subscription with permission to create a Foundry resource, deploy a model, and retrieve the resource key.
The .NET 11 SDK is necessary for running the C# code. The process involves creating a resource group, deploying the Foundry resource, enabling New Foundry, deploying the model, and testing the deployment using a C# script. The deployment process involves selecting the gpt-5.4-mini model, choosing a deployment name, and a small capacity allocation. After deployment, the open AI v1 base URL and API key are copied for use in the .NET application.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to