StudyToCert

All certifications / Azure AI Engineer / Lessons

Microsoft Certified: Azure AI Engineer Associate AI-102 · Domain 1: Plan and manage an Azure AI solution

Endpoints, keys and SDKs: calling Azure AI services with REST and the Python and C# SDKs

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Every Azure AI service is reached the same basic way: your program sends a message over the internet to the service's web address, called the endpoint. The message says which job to do, includes proof of who you are, and carries your data, such as text or an image. The proof is either a secret key or a sign-in token. Different services expect the key under slightly different labels. Some big jobs do not answer immediately; the service says 'got it, check back here' and gives you a link to check. SDKs are ready-made code libraries for languages like Python and C# that handle these details for you. Status codes are short numbers the service sends back: 401 means 'I do not know who you are', 429 means 'slow down', and 202 means 'working on it'.

Nadia, a junior developer at Sycamore Health Partners, has been staring at the same error for an hour. Her script that sends patient feedback to Azure AI Language returns 401 Unauthorized. She switches to the Azure OpenAI resource, copies the same header style, and gets 401 again. Then her Document Intelligence call 'works' but returns 202 and an empty body. She asks you over chat, 'Is Azure broken today?' It is not. Each service expects a slightly different header, and some operations do not answer right away. Can you read her requests and status codes and tell her exactly what to fix in each one?

Every Azure AI service is ultimately a REST API. Your app sends an HTTPS request to the resource's endpoint with a path for the operation, an api-version query parameter, a credential and usually a JSON body. The SDKs for Python, C#, JavaScript and Java wrap these calls so you work with typed objects instead of raw JSON, but knowing the REST shape helps you debug and answer exam questions that show a request. When a call fails, the fix is almost always in one of those four parts: the endpoint and path, the API version, the credential, or the body.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Engineer for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Engineer study plan