{
 "kind": "api",
 "slug": "azure-ai-search",
 "path": "apis/azure-ai-search/",
 "name": "Azure AI Search",
 "logo": "https://agentgid.com/media/avatars/azure.png",
 "maker": "Microsoft",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Vector databases",
   "apis/vector-db/"
  ]
 ],
 "lead": "Microsoft's hosted search for apps and chatbots.",
 "chips": [
  {
   "label": "Vector databases",
   "path": "apis/vector-db/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Add Azure AI Search to my app: read AZURE_SEARCH_SERVICE_ENDPOINT, AZURE_SEARCH_INDEX_NAME and AZURE_SEARCH_API_KEY from .env on the server, pin azure-search-documents 12.0.0, never put the admin key in browser code, and filter every query by the signed-in user's groups."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://azure.microsoft.com/en-us/products/ai-services/ai-search"
  },
  {
   "label": "Pricing",
   "href": "https://azure.microsoft.com/en-us/pricing/details/search/"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/Azure/azure-sdk-for-python"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free every month",
   "status": "yes",
   "sub": "Then pay as you go",
   "quote": null,
   "note": "Free tier: Free tier: 50 MB storage, 3 indexes per service; semantic ranker first 1k requests free per month. As reported on the official pricing page, checked Nov 10, 2026.",
   "src": "https://azure.microsoft.com/en-us/pricing/details/search/"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Allowed",
   "status": "yes",
   "sub": null,
   "quote": "These capabilities support scenarios ranging from traditional search experiences to AI-powered agents and chat applications suitable for both enterprise and consumer scenarios.",
   "note": "Paid Azure service used under your Azure subscription terms; client libraries are MIT. Data: no",
   "src": "https://learn.microsoft.com/en-us/azure/search/search-what-is-azure-search"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var AZURE_SEARCH_SERVICE_ENDPOINT, AZURE_SEARCH_INDEX_NAME, AZURE_SEARCH_API_KEY (names used in the Python SDK README; pass them to the client)",
   "quote": "Query keys are typically distributed to client applications that issue queries.",
   "note": "API key in the api-key header (admin key: read-write; query key: read-only), or Microsoft Entra ID roles. Admin keys never go to the browser. A read-only query key is typically given to client apps, but anyone holding it can read the whole index.",
   "src": "https://learn.microsoft.com/en-us/azure/search/search-security-api-keys"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "SDK",
   "quote": "This tool runs a search query against an Azure AI Search index and returns the matching documents and relevance metadata.",
   "note": "Signs in through the Azure CLI (az login); pin a version instead of @latest. Our agent check: 4 of 6 (Nov 13, 2026).",
   "src": "https://learn.microsoft.com/en-us/azure/developer/azure-mcp-server/tools/azure-ai-search"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Azure AI Search does",
   "parts": [
    {
     "t": "prose",
     "text": "Azure AI Search is Microsoft's online search service. You load your documents into it, and your website, app or chatbot can then find them by exact words, by meaning, or both. It can pull files from Azure storage and SharePoint, and has a small free tier for trying it out."
    },
    {
     "t": "list",
     "items": [
      "Azure AI Search is one of 24 APIs in the Vector databases category on AgentGid.",
      "It is one of 19 that can be started for free.",
      "It ships an official MCP server, like 12 others here.",
      "Its official SDK is the 8th most downloaded in the category (2.1M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Search box for a catalog or site",
       "text": "Visitors search your products, articles or listings with filters, facets, autocomplete and typo tolerance, and get ranked results.",
       "idea": false
      },
      {
       "title": "Chatbot that answers from company files",
       "text": "Let a chatbot or agent look up the right passages in your company documents before it answers, so replies are based on your own content.",
       "idea": false
      },
      {
       "title": "Find by meaning and words at once",
       "text": "A search for \"historic hotel walk to restaurants\" finds good matches even when the page uses other words, because meaning and keywords are combined.",
       "idea": false
      },
      {
       "title": "Each employee sees only allowed files",
       "text": "Store the groups that may read each file, and add the signed-in person's groups to every search, so results skip files they may not open.",
       "idea": false
      },
      {
       "title": "Add or update documents from your app",
       "text": "When a product or article changes in your app, send the new version to the index so search shows it.",
       "idea": false
      },
      {
       "title": "Search across SharePoint and storage files",
       "text": "Point the service at files in Azure storage or SharePoint, and it reads, splits and indexes them on a schedule.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Azure AI Search popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "1.4M",
       "l": "SDK downloads a week",
       "d": "+14.4% on the 4-week average",
       "up": true
      },
      {
       "n": "105",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "5,624",
       "l": "GitHub stars, Azure/azure-sdk-for-python"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "Free tier: 50 MB storage, 3 indexes per service; semantic ranker first 1k requests free per month"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "East US: Basic $0.101/hour, Standard S1 $0.336/hour, S2 $1.344/hour, S3 $2.688/hour; semantic ranker $1 per 1K queries; Serverless (preview): $0.24 per compute unit-hour and $0.20 per GB-month of storage, scales to zero when idle"
      },
      {
       "l": "Plans",
       "v": "Billed hourly per search unit and varies by region; hourly rates taken from Microsoft's Azure Retail Prices API (prices.azure.com) because the pricing page renders prices client-side."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "Basic search unit, per hour (East US, list price on 2026-11-10)",
       "$0.101"
      ],
      [
       "Standard S1 search unit, per hour (East US)",
       "$0.336"
      ],
      [
       "1,000 semantic ranker queries after the free 1,000 a month (East US)",
       "$1"
      ],
      [
       "Serverless (preview) compute unit, per hour (East US)",
       "$0.24"
      ],
      [
       "Serverless (preview) indexed storage, per GB-month (East US)",
       "$0.2"
      ]
     ]
    },
    {
     "t": "more",
     "items": [
      {
       "title": "Price history",
       "items": [
        "1 change in our catalog since Oct 10, 2026, last on Nov 13, 2026."
       ]
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Nov 10, 2026. Prices change: confirm before you buy.",
     "link": "azure.microsoft.com/en-us/pricing/details/search",
     "href": "https://azure.microsoft.com/en-us/pricing/details/search/"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free",
       "v": "50 MB storage, 3 indexes, one free service per subscription",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-limits-quotas-capacity"
      },
      {
       "l": "Free",
       "v": "20 free AI enrichment transactions per indexer per day",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-limits-quotas-capacity"
      },
      {
       "l": "Serverless Developer (preview)",
       "v": "300 MB vector index per index",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-limits-quotas-capacity"
      },
      {
       "l": "All",
       "v": "1,000 semantic ranker requests free per month, then paid",
       "src": "https://azure.microsoft.com/en-us/pricing/details/search/"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "learn.microsoft.com/en-us/azure/search/search-limits-quotas-capacity",
     "href": "https://learn.microsoft.com/en-us/azure/search/search-limits-quotas-capacity"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key in the api-key header (admin key: read-write; query key: read-only), or Microsoft Entra ID roles."
      },
      {
       "l": "Environment variable",
       "v": "AZURE_SEARCH_SERVICE_ENDPOINT, AZURE_SEARCH_INDEX_NAME, AZURE_SEARCH_API_KEY (names used in the Python SDK README; pass them to the client)",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "Not stated on the pages we read"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Create or sign in to an Azure account and subscription. Continue once the person has a subscription; the agent cannot create accounts.",
      "Create the search service in the Azure portal and choose a tier (Free, Basic, Standard, or Serverless preview). Read AZURE_SEARCH_SERVICE_ENDPOINT from .env.",
      "Copy an admin key and a query key from Settings > Keys (or set up Microsoft Entra roles). Read AZURE_SEARCH_API_KEY from .env on the server (the person pastes it there, not into the chat)."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "Azure AI Search is a paid Microsoft cloud service with a free tier, used under your Azure agreement; Microsoft says it suits both business and consumer apps. The client libraries are MIT."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "Yes",
       "status": "yes",
       "sub": "Paid Azure service used under your Azure subscription terms; client libraries are MIT.",
       "quote": "These capabilities support scenarios ranging from traditional search experiences to AI-powered agents and chat applications suitable for both enterprise and consumer scenarios.",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-what-is-azure-search"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "Fine to build for clients; the Azure subscription that owns the service is billed, so agree who holds it.",
       "quote": "All Serverless compute and storage usage is charged to the subscription that owns the service.",
       "src": "https://azure.microsoft.com/en-us/pricing/details/search/"
      },
      {
       "l": "redistribute-files",
       "v": "With conditions",
       "status": "cond",
       "sub": "The MIT client libraries may be shipped with your app; the hosted service itself is not something you redistribute.",
       "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy",
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/LICENSE"
      },
      {
       "l": "To train your own AI",
       "v": "No",
       "status": "no",
       "sub": "Microsoft does not train models on your Azure AI Search data.",
       "quote": "No customer data used for model training",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-security-overview"
      },
      {
       "l": "Trains on what you send",
       "v": "no",
       "quote": "Microsoft doesn't use customer data from Azure AI Search to train or improve any models, including built-in skills, semantic ranking, or other AI features.",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-security-overview"
      },
      {
       "l": "Keeps your data",
       "v": "Data is encrypted at rest with Microsoft-managed keys; you can add your own keys on paid tiers.",
       "quote": "Azure AI Search automatically encrypts all data at rest using 256-bit AES encryption with Microsoft-managed keys.",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-security-overview"
      },
      {
       "l": "Where data is stored",
       "v": "Data stays in the Azure geography of your region (only Brazil South stays within the region itself).",
       "quote": "The exception is Brazil South, where data stays within the region.",
       "src": "https://learn.microsoft.com/en-us/azure/search/search-security-overview"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "401",
       "v": "Credentials missing, or a role assignment is missing when using Entra ID",
       "sub": "Check the api-key header or the role assignment."
      },
      {
       "l": "402",
       "v": "The free monthly semantic ranker requests are used up",
       "sub": "Switch semantic ranker to standard billing, or wait for next month."
      },
      {
       "l": "207",
       "v": "Some documents in a batch were saved, at least one failed",
       "sub": "Check each document's result and resend the failed ones."
      },
      {
       "l": "429",
       "v": "Tier object limit reached, or the index is running out of storage",
       "sub": "Delete documents or objects, or move to a bigger tier."
      },
      {
       "l": "503",
       "v": "The service is under heavy load",
       "sub": "Retry with wait times (backoff) or add capacity."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "4 of 6: llms.txt no, OpenAPI no, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Azure MCP Server (@azure/mcp), with Azure AI Search tools to list indexes and run queries",
       "sub": "npx -y @azure/mcp@latest server start"
      },
      {
       "l": "npm",
       "v": "npm install @azure/search-documents",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install azure-search-documents",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Azure AI Search",
       "me": true,
       "facts": [
        "from $0.101/hour",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Elasticsearch (Elastic Cloud)",
       "why": "Pick Elastic Cloud for managed Elasticsearch with full-text, vector and hybrid search on AWS, Google Cloud or Azure.",
       "path": "apis/elastic-cloud/",
       "facts": [
        "Free (open source)",
        "No free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Algolia",
       "why": "Pick Algolia for a site search box with ready-made interface libraries and relevance tuning, without running Azure.",
       "path": "apis/algolia/",
       "facts": [
        "$0.5 / 1k requests",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Supabase (pgvector)",
       "why": "Pick Supabase when you want vector search inside a Postgres database together with sign-in and file storage.",
       "path": "apis/supabase-pgvector/",
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      }
     ],
     "more": "All vector databases APIs",
     "more_path": "apis/vector-db/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add Azure AI Search to my app: read AZURE_SEARCH_SERVICE_ENDPOINT, AZURE_SEARCH_INDEX_NAME and AZURE_SEARCH_API_KEY from .env on the server, pin azure-search-documents 12.0.0, never put the admin key in browser code, and filter every query by the signed-in user's groups."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create a search service in the Azure portal; pick the Free tier to try it (one per subscription).",
       "code": null,
       "src": "https://learn.microsoft.com/en-us/azure/search/search-sku-tier"
      },
      {
       "text": "Install the Python client library.",
       "code": "pip install azure-search-documents",
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/README.md"
      },
      {
       "text": "Create a client with the service address, index name and key.",
       "code": "service_endpoint = os.environ[\"AZURE_SEARCH_SERVICE_ENDPOINT\"]\nindex_name = os.environ[\"AZURE_SEARCH_INDEX_NAME\"]\nkey = os.environ[\"AZURE_SEARCH_API_KEY\"]\n\nsearch_client = SearchClient(service_endpoint, index_name, AzureKeyCredential(key))",
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "POST /indexes/hotel-samples-index/docs/search?api-version=2026-04-01\n{\n    \"search\": \"pool spa +airport\",\n    \"searchMode\": \"any\",\n    \"queryType\": \"simple\",\n    \"select\": \"HotelId, HotelName, Category, Description\",\n    \"count\": true\n}",
       "intro": "Verbatim from Microsoft's simple query examples (trimmed); send it to https://<service>.search.windows.net with the api-key header. Not run by us."
      },
      {
       "tab": "Response",
       "code": "\"@odata.count\": 4,\n\"value\": [\n{\n    \"@search.score\": 6.090657,\n    \"HotelId\": \"12\",\n    \"HotelName\": \"Winter Panorama Resort\",\n    ...\n    \"Category\": \"Resort and Spa\"\n},\n..."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Putting an admin key in browser or mobile code",
       "fix": "Keep admin keys on the server; give client apps only a query key, or call search from your server",
       "why": "Admin keys allow full read-write access; query keys are read-only."
      },
      {
       "dont": "Passing the key in the URL (?api-key=...)",
       "fix": "Send it in the api-key request header",
       "why": "Only query keys are accepted in the query string, and Microsoft calls that poor security practice."
      },
      {
       "dont": "Relying on semantic ranking on the free plan in production",
       "fix": "Switch semantic ranker to standard billing before launch, or handle 402 errors",
       "why": "After the free monthly allowance, requests fail with 402."
      },
      {
       "dont": "Calling the service with http:// URLs",
       "fix": "Always use https:// for the search endpoint",
       "why": "Plain http gives 502 or 504 errors."
      },
      {
       "dont": "Setting up the Azure MCP server with npx -y @azure/mcp@latest in a shared project config",
       "fix": "Pin an exact @azure/mcp version and ask the person before adding it",
       "why": "The README's command downloads whatever version is newest at each start."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free plan?",
       "a": "Yes. One free search service per Azure subscription, with 50 MB of storage, shared hardware and some features missing.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/search/search-sku-tier",
        "quote": "Free creates a limited search service for small projects, such as tutorials and development."
       }
      },
      {
       "q": "What does a paid service cost?",
       "a": "Dedicated tiers are billed per hour by tier and size (Basic is $0.101 an hour in East US on 2026-11-10); a Serverless preview bills by use.",
       "evidence": {
        "url": "https://prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Azure%20Cognitive%20Search'%20and%20armRegionName%20eq%20'eastus'",
        "quote": "\"retailPrice\":0.101,\"unitPrice\":0.101,\"armRegionName\":\"eastus\",\"location\":\"US East\",\"effectiveStartDate\":\"2016-08-01T00:00:00Z\",\"meterId\":\"0c873ca2-4113-4997-8cf6-ad5df5775599\",\"meterName\":\"Basic Unit\""
       }
      },
      {
       "q": "Does Microsoft train AI models on my search data?",
       "a": "No. Microsoft says it does not use customer data from Azure AI Search to train or improve any models.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/search/search-security-overview",
        "quote": "Microsoft doesn't use customer data from Azure AI Search to train or improve any models, including built-in skills, semantic ranking, or other AI features."
       }
      },
      {
       "q": "Do I need vectors to build a chatbot on it?",
       "a": "No. Microsoft notes that language models and agents do not require vectors; use them only for search by similarity.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/search/search-what-is-azure-search",
        "quote": "LLMs and agents don't require vectors."
       }
      },
      {
       "q": "Can a web page call it directly?",
       "a": "Only with a read-only query key, which Microsoft says is typically given to client apps; admin keys must stay on the server.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/search/search-security-api-keys",
        "quote": "Query keys are typically distributed to client applications that issue queries."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Microsoft"
  ],
  [
   "Category",
   "Vector databases"
  ],
  [
   "Price",
   "from $0.101/hour"
  ],
  [
   "Official SDK",
   "npm @azure/search-documents, PyPI azure-search-documents"
  ],
  [
   "Latest SDK",
   "12.0.0 on npm"
  ],
  [
   "Agent check",
   "4 of 6"
  ],
  [
   "Pricing checked",
   "Nov 10, 2026"
  ]
 ],
 "good": [
  "The free tier holds 50 MB and three indexes, runs on shared hardware, and may be deleted after a long time without use.",
  "Paid tiers are billed per hour while the service exists, even with no searches, and rates differ by region.",
  "The pay-per-use Serverless tier is a preview with no uptime promise; Microsoft does not recommend it for live products."
 ],
 "checked_line": "Read by AgentGid from 27 official pages, card checked Nov 10, 2026; usage numbers update daily."
}