Azure Functions OpenAI extension retires 20 April 2027: the SDK migration plan

Eight OpenAI bindings lose support on 20 April 2027. Replace them with OpenAI, Foundry and Azure AI Search SDK calls; pin bundles only as a stopgap.

Read time
16 min
Word count
2.6K
Sections
12
FAQs
8
Share
Two engineers review an Azure Functions SDK migration plan on paper beside a small server, titled Azure Functions Migration
On this page · 12 sections
  1. What Microsoft announced on 20 November 2026
  2. Why this matters more than a version bump
  3. The eight bindings and their replacements
  4. Option 1: pin the bundle, as a stopgap only
  5. Option 2: call the OpenAI SDK directly
  6. Option 3: Azure AI Search SDK for the RAG bindings
  7. Option 4: Microsoft Foundry for the assistant bindings
  8. What it costs
  9. A five-step plan before 20 April 2027
  10. India-specific considerations
  11. How eCorpIT can help
  12. References

Summary. Microsoft posted a retirement notice on 20 November 2026: support for the Azure Functions OpenAI extension ends on 20 April 2027, 148 days from today. After that date the extension gets no security updates, patches or technical support. Preview extension bundle 4.60.0 and later will not contain it, so Python, JavaScript, Java and PowerShell apps keep working only if host.json pins the preview bundle below 4.60.0; .NET apps can keep referencing the NuGet packages directly. Neither stopgap extends support. Microsoft's answer is to call the OpenAI, Microsoft Foundry or Azure AI Search SDKs directly. The extension never left preview: every NuGet release, from 0.8.0-alpha in February 2024 to 0.22.0-alpha on 19 October 2026, carries an alpha tag, and it ships only in the preview bundle (4.50.0-Preview, from 28 October 2026, is the newest), not the GA bundle. Model and search costs do not change when you migrate. Our verdict: inventory your eight binding types this month, move text completion and embeddings first because each is one SDK call, and give the assistant and RAG bindings the most time because they hold state in Table storage and a vector index.

About this article. This is for engineering leads and developers who run Azure Functions apps using the OpenAI triggers and bindings for chat, assistants, embeddings or retrieval-augmented generation (RAG), in any language. On 23 November 2026 we checked the dates, package versions, binding parameters and SDK guidance against Microsoft's Azure update notice, the Microsoft Learn pages for each binding and SDK, the extension's GitHub repository, the extension bundle release notes, the NuGet and PyPI registries, and the Azure retail prices API. Microsoft edits Learn pages often, so check the linked pages before you change production code. No vendor paid for inclusion. Researched with AI assistance and checked against the primary sources listed in the references.

What Microsoft announced on 20 November 2026

The Azure update, tagged as a retirement and as a Microsoft Ignite item, says four things. Support for the extension ends on 20 April 2027. You should move to the OpenAI, Microsoft Foundry or Azure AI Search SDKs, depending on what each function does. Until you move, .NET apps continue to run, and non-.NET apps continue to run if they use a preview extension bundle earlier than 4.60.0. After 20 April 2027 those apps are unsupported, with no security updates, patches or support for the extension.

The Learn overview page and all eight binding pages now carry the same warning and add two details. First, the exact host.json range that keeps the extension: [4.*, 4.60.0) on the preview bundle. Second, a plain statement that neither pinning an older bundle nor staying on the NuGet packages extends support past 20 April 2027. The extension's GitHub README carries the same warning. Our Microsoft Ignite 2026 watchlist covers the wider Azure AI announcements from that week.

The key dates

The release dates below come from the NuGet registry and the bundle release notes, and the 20 April date from the Azure update.

Date What happens Who it affects
19 October 2026 Last extension release, 0.22.0-alpha All languages
28 October 2026 Preview bundle 4.50.0 ships with OpenAI 0.22.0-alpha Python, Node.js, Java, PowerShell
20 November 2026 Retirement notice published Everyone using the bindings
Not yet dated Preview bundle 4.60.0 ships without the extension Apps on an open preview range
20 April 2027 Support ends, no security fixes Everyone, including pinned apps

As of 23 November 2026 the newest preview bundle is 4.50.0, so 4.60.0 has not shipped and Microsoft has not said when it will. Treat the next preview bundle release as the point where an open range such as [4.*, 5.0.0) can silently drop the extension on a restart.

Why this matters more than a version bump

There is no successor extension. Microsoft is not shipping a v2 binding. The replacement is your own code calling SDKs. Every function that today receives a TextCompletionResponse or EmbeddingsContext from the runtime has to build the client, make the call and handle errors itself.

It was always preview. The NuGet history shows thirteen releases of the isolated worker package, every one marked alpha. Non-.NET apps could only load it from the preview bundle; the current GA bundle, 4.42.1 from 20 November 2026, does not list it. Teams that put preview bindings into production already carried that risk; the retirement turns it into a date.

State lives outside your code. The assistant bindings keep chat history in Azure Table storage; the Learn samples point them at the AzureWebJobsStorage account and a table called ChatState. The embeddings store and semantic search bindings write to and read from a vector store you chose: Azure AI Search, Azure Cosmos DB for NoSQL, Azure DocumentDB or Azure Data Explorer. You keep that data, but your new code must read the formats the extension wrote.

The eight bindings and their replacements

The extension provides one trigger and seven bindings. The table maps each to the SDK we would use. The SDK choices follow Microsoft's three named targets; the pairing per binding is our recommendation, not a Microsoft mapping.

Binding What it does today Replace with
Text completion input Sends a templated prompt, returns text OpenAI SDK, Responses or Chat Completions
Assistant trigger Exposes a function as a tool the model can call Function tools in the Responses API or a Foundry agent
Assistant create output Creates an assistant with instructions Foundry Agent Service, or your own state plus OpenAI SDK
Assistant post input Sends a message, returns updated chat state Foundry conversations, or OpenAI SDK with your own history
Assistant query input Reads chat history since a timestamp Foundry conversations, or a query on your history table
Embeddings input Chunks text, a file or a URL and returns vectors OpenAI SDK embeddings call plus your own chunker
Embeddings store output Chunks, embeds and writes to a vector store Azure AI Search SDK upload, or integrated vectorisation
Semantic search input Embeds the query, searches, asks the model Azure AI Search SDK vector query plus OpenAI SDK call

The binding pages list the parameters you will need to carry across. Watch these defaults, because the SDKs will not apply them for you:

  • The text completion binding uses a maxTokens default of 100 when you do not set it. A direct SDK call without a limit can return much longer answers, which changes cost and latency.
  • The embeddings bindings default to text-embedding-ada-002, and the docs warn that changing the model for an existing vector database makes lookups misbehave. Use the same deployment in your SDK code, or re-embed the whole index.
  • The embeddings bindings chunk input for you using maxChunkLength and maxOverlap. Your replacement needs its own chunker with the same settings, or Azure AI Search integrated vectorisation.
  • The assistant bindings use ChatStorageConnectionSetting and CollectionName to find the Table storage history.

Option 1: pin the bundle, as a stopgap only

If you need time, pin the preview bundle in host.json exactly as Learn shows.


            {
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
    "version": "[4.*, 4.60.0)"
  }
}
          

This keeps the bindings loading after 4.60.0 ships. It does not keep the app supported after 20 April 2027, and it freezes every other preview extension in the bundle below 4.60.0 too. For .NET, the equivalent is leaving the Microsoft.Azure.Functions.Worker.Extensions.OpenAI package reference where it is.

If you are still on the .NET in-process model, you have an earlier problem: support for in-process apps ended on 10 November 2026. Move to the isolated worker model and drop the OpenAI extension in the same piece of work. Our .NET 8 and 9 end-of-support guide covers the runtime side of that move.

Option 2: call the OpenAI SDK directly

For text completion and embeddings, the replacement is one client and one call. Microsoft's guidance is to use the standard OpenAI libraries against the Azure OpenAI v1 endpoint, which drops the dated api-version parameter and works with Microsoft Entra ID tokens. The language guide was tested with openai 2.46.0 for Python, the OpenAI 2.12.0 package for .NET and openai 6.46.0 for JavaScript, and it names minimum versions for passing an Entra token provider (1.106.0 for Python, 5.18.0 for JavaScript).

Here is the Learn templating example, the WhoIs function that asks the model who a person is, rewritten for the Python v2 model with managed identity. The client set-up follows Microsoft's SDK sample; the function shape follows the binding page.


            import os
import azure.functions as func
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from openai import OpenAI

app = func.FunctionApp()

token_provider = get_bearer_token_provider(
    DefaultAzureCredential(), "https://ai.azure.com/.default"
)
client = OpenAI(
    base_url=os.environ["AZURE_OPENAI_ENDPOINT"].rstrip("/") + "/openai/v1/",
    api_key=token_provider,
)

@app.route(route="whois/{name}", auth_level=func.AuthLevel.FUNCTION)
def whois(req: func.HttpRequest) -> func.HttpResponse:
    name = req.route_params.get("name")
    response = client.responses.create(
        model=os.environ["CHAT_MODEL_DEPLOYMENT_NAME"],
        input=f"Who is {name}?",
        max_output_tokens=200,
    )
    return func.HttpResponse(response.output_text)
          

Three things to note. Create the client once at module level so warm instances reuse it. The model value is your Azure deployment name, as it was in the binding. The identity needs the Cognitive Services OpenAI User role, which the v1 API page lists as the Entra prerequisite.

The embeddings replacement is the same client calling client.embeddings.create with your embeddings deployment, after your own chunking step. Keep the deployment that built your existing index.

Option 3: Azure AI Search SDK for the RAG bindings

The embeddings store output and semantic search input bindings were a small RAG pipeline: chunk, embed, write to an index, then embed the query, search and ask the chat model with the results. Azure AI Search, which Microsoft's docs now also call Foundry IQ, can take over the first half with integrated vectorisation. Indexers can chunk and embed documents during indexing, and a vectoriser on the index converts query text to a vector at query time; the vectoriser must match the model that encoded your content. That removes the embedding code from your function.

If you prefer to keep embedding in your function, query the index yourself with the azure-search-documents package (12.1.0 is the latest stable release on PyPI) and pass the top results to the chat model. Microsoft's vector query guide recommends the same embedding model for queries as for the indexed documents.


            # Continues the module above: reuses os, client and DefaultAzureCredential.
from azure.search.documents import SearchClient
from azure.search.documents.models import VectorizedQuery

search = SearchClient(
    os.environ["AISEARCH_ENDPOINT"], "openai-index", DefaultAzureCredential()
)

def answer(question: str) -> str:
    vector = client.embeddings.create(
        model=os.environ["EMBEDDING_MODEL_DEPLOYMENT_NAME"], input=question
    ).data[0].embedding
    hits = search.search(
        search_text=question,
        vector_queries=[VectorizedQuery(
            vector=vector, k_nearest_neighbors=5, fields="embeddings"
        )],
        top=5,
    )
    context = "\n\n".join(h["content"] for h in hits)
    response = client.responses.create(
        model=os.environ["CHAT_MODEL_DEPLOYMENT_NAME"],
        input=f"Answer from these sources only.\n\n{context}\n\nQuestion: {question}",
    )
    return response.output_text
          

The field names embeddings and content are placeholders. Open your existing index definition and use the vector and text field names the extension created; do not rebuild the index unless you change embedding models. Passing both search_text and a vector query gives a hybrid query; Microsoft's RAG overview describes hybrid search with semantic ranking as the classic RAG pattern.

If your vectors live in Cosmos DB, Azure DocumentDB or Azure Data Explorer, the same shape applies with that store's own SDK. Microsoft's notice names only the OpenAI, Foundry and Azure AI Search SDKs, so moving a non-Search store is your design choice, not a requirement.

Option 4: Microsoft Foundry for the assistant bindings

The assistant trigger and the create, post and query bindings gave you a stateful chatbot that could call your functions as tools, with history in Table storage. Foundry Agent Service is the managed equivalent: Microsoft describes a platform that hosts agents, manages conversations and tool calls, and accepts Responses API calls from agents you run elsewhere. Use the Foundry SDK, which reaches the project APIs through one project endpoint: azure-ai-projects 2.3.0 or later for Python (with openai 3.0.0 or later), @azure/ai-projects 2.8.0 for JavaScript, and Azure.AI.Projects 2.0.0 for .NET. The same page warns .NET users not to install Azure.AI.Projects.OpenAI alongside Azure.AI.Extensions.OpenAI, because both define the same types.

Each function that used the assistant trigger becomes a tool. Its description string (the Learn sample describes a tool that creates a new todo task) becomes the tool description the model sees. You can host the tool code in the same function app and let the agent call it, or run the whole conversation loop in a function with the Responses API.

The history in ChatState does not move itself. Before you switch, decide whether users need old conversations. If they do, export the table and either load the last few turns into each new conversation or keep a read-only history endpoint. If they do not, announce a cut-over date and start fresh.

Teams that already moved off the Assistants API will recognise this shape; our Assistants API to Foundry Agent Service migration guide covers the agent side in more depth.

What it costs

The extension is open source and adds no charge; you pay for the model deployments, storage and search it called. Direct SDK calls use the same meters, so the real cost is engineering time and any re-embedding.

Three reference prices from the Azure retail prices API, checked on 23 November 2026:

  • Azure OpenAI text-embedding-3-small on a global deployment in East US: $0.00002 per 1,000 tokens, or $0.02 per million. Re-embedding 10,000 documents at 2,000 tokens each (20 million tokens) costs 20 × $0.02 = $0.40, about ₹37.
  • The binding's default model, text-embedding-ada-002, on a global deployment in East US: $0.0001 per 1,000 tokens. The same 20 million tokens cost 20,000 × $0.0001 = $2.00, about ₹185.
  • Azure AI Search Basic in Central India: $0.133 per hour. Over 730 hours that is $97.09 a month, about ₹8,998.

Rupee figures use the ECB reference rates of 20 November 2026 (USD 1.0990 and INR 101.85 per euro), crossed to ₹92.68 per US dollar and rounded to two decimals. Prices vary by region, deployment type and agreement, so price your own set-up. For planning, re-embedding is cheap; the risk sits in code and data formats, not the bill.

A five-step plan before 20 April 2027

  1. Inventory. Search every function app for TextCompletionInput, AssistantSkillTrigger, AssistantPostInput, EmbeddingsInput, EmbeddingsStoreOutput and SemanticSearchInput in .NET and Java, and for the textCompletion, assistantSkillTrigger, assistantPost, embeddings, embeddingsStore and semanticSearch binding types in Python and JavaScript. Also check host.json for open preview bundle ranges.
  1. Pin now. Set the preview range to [4.*, 4.60.0) on every app that still needs the extension, so the 4.60.0 release cannot break a restart.
  1. Move the stateless bindings. Replace text completion and embeddings with OpenAI SDK calls, keeping the same deployments, token limits and chunk sizes.
  1. Move RAG. Point the semantic search replacement at your existing index first, compare answers on a fixed question set, then decide whether to adopt integrated vectorisation.
  1. Move assistants last. Export ChatState, rebuild the tools as Foundry agent tools or Responses API function tools, and cut over with a dated notice to users.

Do the work on the isolated worker model so the app is not carrying a second retirement into 2027.

India-specific considerations

Many Indian SaaS and BFSI teams built internal assistants on these bindings because the templating hid the SDK. Two points matter. If the assistant stores customer conversations, the ChatState table holds personal data under the Digital Personal Data Protection Act 2023, so the export in step 5 needs the same retention and deletion rules as the source table. And if you pick Azure AI Search in Central India to keep data in the country, check that your Azure OpenAI deployment type matches that choice: Microsoft states that global deployment types may process inference data in any Azure region, while data stored at rest stays in your chosen geography. This is general guidance, not legal advice.

For a wider view of how vendors schedule these shutdowns, see our comparison of AI model retirement policies.

How eCorpIT can help

eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our AI and machine learning team can inventory your Azure Functions OpenAI bindings and rebuild them on the OpenAI, Foundry and Azure AI Search SDKs without losing chat history or vector data. Talk to us at /contact-us/.

Last updated: 23 November 2026.

References

  1. Retirement: Support for Azure Functions OpenAI extension ends on April 20, 2027, published 20 November 2026 — Microsoft Azure updates
  1. Azure OpenAI extension for Azure Functions — Microsoft Learn
  1. Microsoft.Azure.Functions.Worker.Extensions.OpenAI release registration — NuGet
  1. Extension bundle release 4.50.0-Preview, 28 October 2026 — GitHub, Azure organisation
  1. Extension bundle release 4.42.1, 20 November 2026 — GitHub, Azure organisation
  1. Azure OpenAI text completion input binding for Azure Functions — Microsoft Learn
  1. Azure Functions OpenAI Extension README — GitHub, Azure organisation
  1. Azure OpenAI assistant create output binding for Azure Functions — Microsoft Learn
  1. Azure OpenAI SDK language support — Microsoft Learn
  1. Get started with Microsoft Foundry SDKs and endpoints — Microsoft Learn
  1. Integrated vector embedding in Foundry IQ (Azure AI Search) — Microsoft Learn
  1. Azure OpenAI embeddings input binding for Azure Functions — Microsoft Learn
  1. Azure OpenAI semantic search input binding for Azure Functions — Microsoft Learn
  1. Azure OpenAI embeddings store output binding for Azure Functions — Microsoft Learn
  1. Azure OpenAI assistant post input binding for Azure Functions — Microsoft Learn
  1. Migrate C# apps from the in-process model to the isolated worker model — Microsoft Learn
  1. Azure OpenAI in Microsoft Foundry Models v1 API — Microsoft Learn
  1. Create a vector query in Foundry IQ (Azure AI Search) — Microsoft Learn
  1. azure-search-documents package metadata — PyPI
  1. Retrieval-augmented generation in Foundry IQ (Azure AI Search) — Microsoft Learn
  1. Azure OpenAI assistant trigger for Azure Functions — Microsoft Learn
  1. Azure OpenAI assistant query input binding for Azure Functions — Microsoft Learn
  1. What is Microsoft Foundry Agent Service? — Microsoft Learn
  1. Azure retail prices API, Azure Cognitive Search and Foundry Models meters — Microsoft
  1. Euro foreign exchange reference rates, 20 November 2026 — European Central Bank
  1. Understanding deployment types in Microsoft Foundry Models — Microsoft Learn

Frequently asked

Quick answers.

01 When does support for the Azure Functions OpenAI extension end?
Support ends on 20 April 2027. Microsoft published the retirement notice on 20 November 2026. After the end date the extension receives no security updates, patches or technical support. Apps may still run, but unsupported, and Microsoft recommends moving to direct OpenAI, Microsoft Foundry or Azure AI Search SDK calls before that date.
02 Will my function app stop working on 20 April 2027?
Not automatically. .NET apps keep running on the NuGet packages, and other languages keep running if host.json pins the preview bundle below 4.60.0. The risks are that an unpinned app loses the extension when 4.60.0 ships, and that any security flaw found after April will not be fixed, so plan to migrate.
03 What is the 4.60.0 bundle change?
Preview extension bundle 4.60.0 and later will not include the OpenAI extension. Python, JavaScript, Java and PowerShell apps load bindings from bundles, so an open version range could pick up 4.60.0 and lose the bindings. Setting the preview bundle range to 4.x below 4.60.0 in host.json prevents that.
04 Is there a new version of the extension to upgrade to?
No. Microsoft is not releasing a replacement extension. The guidance is to call the SDKs directly: the OpenAI SDK for completions and embeddings, the Azure AI Search SDK for vector storage and retrieval, and Microsoft Foundry for agent-style assistants. The final release was 0.22.0-alpha in October 2026, and the package never left preview.
05 Which binding should we migrate first?
Start with text completion and embeddings input, because each becomes one OpenAI SDK call with no stored state. Then move the embeddings store and semantic search bindings, which touch your vector index. Leave the assistant bindings until last, since they hold chat history in Table storage and need an export and cut-over plan.
06 Do we need to re-embed our vector index?
Only if you change embedding models. The binding defaults to text-embedding-ada-002 unless you set another deployment, and mixing models breaks similarity search. Keep the same deployment in your SDK code and the existing index keeps working. If you do switch models, re-embedding is cheap at current prices, but plan a full rebuild and test.
07 What happens to our assistant chat history?
The assistant bindings store history in an Azure Table storage table, named ChatState in Microsoft's samples, in the storage account the binding points to. The data stays there after migration, but Foundry agents and direct SDK code will not read it. Export it, then either replay recent turns into new conversations or offer a read-only history view.
08 Does migrating change our Azure bill?
Mostly not. The extension was a free open-source wrapper, so model tokens, search units and storage cost the same when your code calls the SDKs directly. Extra cost comes from engineering time and from any re-embedding or new Azure AI Search tier you choose. Check prices for your region on the Azure retail prices API.

About the author

Manu Shukla

Founder & Director

Founder of eCorpIT. Hands-on engineer leading senior-only delivery for AI apps, custom software, and cloud systems for global clients.

Subscribe

One engineering note a week. No fluff, no spam.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data, and marketing — delivered every Wednesday.

Past the reading

Read enough. Let's build something.

A senior architect responds in 24 working hours with scope, indicative cost, and a timeline. NDA before any technical conversation.

Loading search…

Browse all guides