RAG chat assistant on Azure OpenAI

RAG chat assistant on Azure OpenAI RAG chat assistant on Azure OpenAI Authenticated API → orchestrator → content-safe model call grounded by Azure AI Search, with diagnostic logging Azure Region Azure AI grounded prompt 5. App Service → Azure OpenAI (grounded prompt)5 validates HTTPS + token 1. Users → API Management (HTTPS + token)1 2. API Management → App Service2 screen prompt 3. App Service → Azure AI Content Safety (screen prompt)3 retrieve 4. App Service → Azure AI Search (retrieve)4 indexer diagnostics Users (Users) Users Microsoft Entra ID (Entra ID Protection) Microsoft Entra ID sign-in, RBAC API Management (API Management Services) API Management auth, throttling App Service (App Services) App Service orchestrator Azure AI Content Safety (Content Safety) Azure AI Content Safety filters, prompt shields Azure OpenAI (Azure OpenAI) Azure OpenAI chat + embeddings Azure AI Search (Cognitive Search) Azure AI Search vector + keyword index Azure Storage (Storage Accounts) Azure Storage source documents Log Analytics (Log Analytics Workspaces) Log Analytics diagnostic logs, tokens Azure Key Vault (Key Vaults) Azure Key Vault

Flow

  1. 1Users → API Management (HTTPS + token)
  2. 2API Management → App Service
  3. 3App Service → Azure AI Content Safety (screen prompt)
  4. 4App Service → Azure AI Search (retrieve)
  5. 5App Service → Azure OpenAI (grounded prompt)

Cost estimate eastus · price list as of 2026-10-02 · indicative — some usage is assumed

$1,962per month
$23,541per year
8/10components priced
0not priced (see below)

Public pay-as-you-go list prices from the Azure Retail Prices API (USD). Excludes taxes, support plans, Reservations, Savings Plans, Spot and enterprise or EA discounts, and data transfer unless a node sets egressGbPerMonth. Free grants are included where the meter has a free tier. Monthly = 730 hours. Not a quote: confirm with the Azure Pricing Calculator.

Usage basis. Illustrative: 200,000 questions/month, about 750 input and 75 output tokens each after retrieval; gpt-4o-mini-0718 global deployment, 100 GB of indexed content.

By category

AI and agents$917 · 47%
Integration$687 · 35%
Compute$226 · 12%
Security and operations$128 · 7%
Data and storage$3.38 · 0%

By component click a row to highlight it on the diagram

ComponentServiceStatus$ / monthLine items
Azure AI SearchCognitive Searchestimated$736
1 line
  • Standard S1 search unit-hours (replicas × partitions): 2,190 1 Hour × $0.336 = $735.84

Semantic ranker, document cracking and agentic retrieval are billed separately and not modelled.

API ManagementAPI Management Servicesestimated$687
1 line
  • Standard unit-hours: 730 1 Hour × $0.9407 = $686.711
App ServiceApp Servicesestimated$226
1 line
  • P1V3 plan instance-hours (linux): 1,460 1 Hour × $0.155 = $226.30

Plan price per instance-hour; apps on the same plan share it.

Azure AI Content SafetyContent Safetyestimated$150
1 line
  • Text records (1,000 characters each): 400 1K × $0.375 = $150.00
Log AnalyticsLog Analytics Workspacesestimated$127
1 line
  • Data ingestion (GB): 60 1 GB × $0.00 (tiered) = $126.50

Pay-as-you-go ingestion with the monthly free allowance in the tier; commitment tiers are not modelled.

Azure OpenAIAzure OpenAIestimated$31.50
2 lines
  • gpt-4o-mini-0718: input tokens (standard, global): 150,000 1K × $0.0002 = $22.50
  • gpt-4o-mini-0718: output tokens (standard, global): 15,000 1K × $0.0006 = $9.00

Model matched in the Retail Prices API: gpt-4o-mini-0718. Pay-as-you-go standard global deployment; provisioned throughput (PTU) is not modelled.

Azure StorageStorage Accountsestimated$3.38
3 lines
  • Data stored, Hot LRS (GB-month): 100 1 GB/Month × $0.00 = $2.08
  • Write operations: 10 10K × $0.05 = $0.50
  • Read operations: 200 10K × $0.004 = $0.80

Excludes data retrieval and early-deletion charges, egress and transactions on other APIs.

Azure Key VaultKey Vaultsestimated$1.50
1 line
  • Secret and key operations: 50 10K × $0.03 = $1.50

Standard tier software-protected keys; HSM keys and certificates are not modelled.

Not priced

  • Microsoft Entra ID — no-charge: Entra ID Protection has no direct charge.

Assumptions 11 defaulted — replace them with your own numbers in each node's usage

ComponentAssumptionValueSource
API Managementtierstandardfrom spec
API Managementunits1from spec
App ServiceskuP1v3from spec
App Serviceoslinuxassumed
App Serviceinstances2from spec
App ServicehoursPerMonth730assumed
Azure AI Content SafetytextRecordsPerMonth400000from spec
Azure AI Content SafetyimagesPerMonth0assumed
Azure OpenAImodelgpt-4o-mini-0718from spec
Azure OpenAIdeploymentglobalassumed
Azure OpenAImodestandardassumed
Azure OpenAIinputTokensPerMonth150000000from spec
Azure OpenAIoutputTokensPerMonth15000000from spec
Azure OpenAIcachedInputTokensPerMonth0assumed
Azure AI Searchskustandard-s1from spec
Azure AI SearchsearchUnits3from spec
Azure StorageaccessTierhotassumed
Azure StorageredundancyLRSassumed
Azure StoragestorageGb100from spec
Azure StoragewriteOperationsPerMonth100000assumed
Azure StoragereadOperationsPerMonth2000000from spec
Log AnalyticsingestGbPerMonth60from spec
Log AnalyticsretentionDays31assumed
Log AnalyticsretainedGb10assumed
Azure Key VaultoperationsPerMonth500000from spec

Sensitivity & what-if

$1,962at 1× traffic
$2,610at 3× traffic
$4,881at 10× traffic

No what-if options apply to these services.

Price list provenance

Retrieved 2026-10-02T10:01:47.868Z from the public Azure Retail Prices API. Latest price effective dates per service:

API Management 2024-12-01 · Azure App Service 2026-06-01 · Foundry Tools 2026-10-01 · Azure Cognitive Search 2026-09-01 · Storage 2026-09-01 · Log Analytics 2018-02-01 · Key Vault 2022-03-01

Only public pay-as-you-go list prices are used. This is not a quote — confirm in the Azure Pricing Calculator.