Skip to content
  • English Deutsch

benjamin-abt.com

Performance is a feature | Cloud - AI - Azure - .NET - Sustainability

  • Home
  • Blog
  • Portfolio
    • Overview
    • Workshops & Training
    • Publications
  • Contact
  • Home
  • Blog

Automatically deploy GPT-4.1 Mini in Azure OpenAI via Bicep

Automatically deploy GPT-4.1 Mini in Azure OpenAI via Bicep
July 10, 2025 3 min read BEN ABT
Azure OpenAI Azure AI Foundry

The official Microsoft documentation on deploying Azure OpenAI models is generally helpful, but specific examples are often still missing, especially for new models such as gpt-4.1-mini and newer SKU types such as DataZoneStandard. Anyone who wants to provide a current model such as the gpt-4.1-mini programmatically is therefore quickly faced with unanswered questions.

Recently, some things have changed in the provision of OpenAI deployments in Azure: In particular, the SKU type DataZoneStandard is new and replaces the previous Standard or Standard_S logic for certain models. Anyone working with this new SKU needs to know how to define the capacity correctly and what to look out for when deploying.

New model availability: GPT-4.1 Mini now also available in Germany

Another important innovation: GPT-4.1 Mini is now no longer exclusively limited to data centers in France (France Central), but can also be deployed in the Germany West Central region. This is a major step forward, especially for data-sensitive projects or customers with location requirements in Germany. This makes it easier to use the model in a more data protection-friendly way while adhering to local compliance requirements.

Example deployment via Bicep

Here you can see a simple example in Bicep

Bicep
 1param openAiAccountName string // z. B. 'oai-myaccountname'
 2param openAiAccountLocation string // z. B. 'germanywestcentral'
 3
 4resource openAIAccount 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
 5  name: openAiAccountName
 6  location: openAiAccountLocation
 7  sku: {
 8    name: 'S0'
 9  }
10  kind: 'OpenAI'
11  properties: {
12    publicNetworkAccess: 'Enabled'
13  }
14}
15
16resource gpt4_1_mini 'Microsoft.CognitiveServices/accounts/deployments@2025-06-01' = {
17  parent: openAIAccount
18  name: '${openAiAccountName}_gpt41mini' 
19  sku: {
20    name: 'DataZoneStandard'
21    capacity: 20 
22  }
23  properties: {
24    model: {
25      format: 'OpenAI'
26      name: 'gpt-4.1-mini'
27      version: '2025-04-14' 
28    }
29    versionUpgradeOption: 'OnceNewDefaultVersionAvailable'
30    currentCapacity: 20 
31    raiPolicyName: 'Microsoft.Default'
32  }
33}

What does capacity mean with DataZoneStandard?

The capacity specification indicates how much quota unit is to be provided for the respective model. In contrast to the classic SKUs (Standard etc.), where capacities were often implicit or related to tokens, capacity here means an explicit allocation of computing capacity within the so-called DataZone. This value influences how many parallel requests and how high throughputs your deployment can process.

Important: capacity is not synonymous with a number of instances or maximum tokens - it is a model-dependent metric that is controlled and documented by Microsoft (although unfortunately not always transparently).

Conclusion

If you want to use current models such as gpt-4.1-mini in Azure OpenAI, there is no way around DataZoneStandard. It is important that you define the capacity correctly and know which model supports which version. The bicep snippet shown above is a ready-to-use template that you can use to set up a deployment in just a few minutes.

Especially in times when Microsoft releases many model versions quickly, an automated setup via Bicep is particularly worthwhile - because you can automatically update to new model versions with versionUpgradeOption: OnceNewDefaultVersionAvailable``, for example.

Related articles

Automatically discover tools for Azure OpenAI Realtime API

Sep 24, 2025 - 9 min read

Automatically discover tools for Azure OpenAI Realtime API

Azure now provides a unified Realtime API for low‑latency, multimodal conversations over WebRTC or WebSockets. If you’ve used the earlier …

Automatic TTL in Azure Cosmos DB with .NET

Aug 17, 2026 - 17 min read

Automatic TTL in Azure Cosmos DB with .NET

Temporary data is easy to create and surprisingly difficult to remove reliably. Sessions, idempotency keys, import buffers, transient …

Run Hono on Azure Static Web Apps: managed Functions APIs for static frontends

Jul 19, 2026 - 8 min read

Run Hono on Azure Static Web Apps: managed Functions APIs for static frontends

Azure Static Web Apps is primarily a host for static frontend assets, but it can also deploy a small HTTP API alongside the frontend. That …


BEN ABT

BEN ABT

Ben is Chief Engineering Officer and Principal Software Engineer at Medialesson.de, with a strong focus on .NET and Microsoft Azure. In his professional role, he designs and builds highly scalable platforms for hybrid and cloud-based scenarios. He also advises companies and C-levels on migrating to the sovereign cloud.

He runs myCSharp.de, the largest and most active German-speaking C# community forum, actively contributes to both his own and external open-source projects and regularly shares his knowledge through his blog, at community events, conferences and as a writer for technical magazines.

Let's Work Together

Looking for an experienced Platform Architect or Engineer for your next project? Whether it's cloud migration, platform modernization or building new solutions from scratch - I'm here to help you succeed.

New Platforms

Modernization

Training & Consulting

Contact Me
X Facebook LinkedIn WhatsApp
Back Next Blog Post

Open for work!

Contact Me
BEN ABT BEN ABT Software Engineer · Microsoft MVP Passionate about .NET, Azure, performance optimization and sustainable software engineering.

Medialesson GmbH Logo

Microsoft MVP Logo

Recent posts

View all
Stop Using nginx as Your Default Static File Server in Docker

Stop Using nginx as Your Default Static File Server in …

Oct 24, 2026
Containerizing .NET in 2026 Without a Dockerfile

Containerizing .NET in 2026 Without a Dockerfile

Oct 20, 2026
Problem Details in ASP.NET Core and .NET 11

Problem Details in ASP.NET Core and .NET 11

Oct 5, 2026
Resilience in .NET with Microsoft.Extensions.Resilience

Resilience in .NET with Microsoft.Extensions.Resilience

Sep 21, 2026
What Matters in ASP.NET Core 11

What Matters in ASP.NET Core 11

Sep 14, 2026

Tags

.NET (192) Csharp (96) ASP.NET Core (48) Azure (41) DevOps (17) Docker (14) Microsoft (14) EF Core (11) Microsoft MVP (11) AI (10) GitHub (10) GitHub Copilot (10) ASP.NET (9) Security (9) Synology (9) Architecture (8) Raspberry (8) Azure Functions (7) Cloudflare (7) Bicep (6)
benjamin-abt.com

About BEN

Benjamin Abt is a Software Engineer, Platform Architect and Microsoft MVP specializing in .NET, Azure, cloud architecture, performance optimization and sustainable software development.

Connect

  • Follow me on GitHub
  • Follow me on LinkedIn
  • Follow me on Mastodon
  • Microsoft MVP profile
  • Follow SchwabenCode on GitHub
  • Follow me on X

Quick Links

  • Portfolio
  • Blog
  • Workshops & Training
  • Publications
  • Get in Touch
  • Sitemap
Open for Work

© Copyright Benjamin Abt & SchwabenCode | 2011 - 2026

Content licensed under CC BY 4.0 unless otherwise noted.

  • Impressum
  • Privacy
  • Contact