Skip to content
Docs
Request access

Azure OpenAI

Azure OpenAI signs in with your Entra identity. No key exists, so there is none to export or leak. This page was written for a resource in the Canada East region.

  1. Install the azure extra (the same form as the Install page) and sign in as the identity the server will use:

    Terminal window
    pip install "nuramesh[azure]"
    az login

    A managed identity works the same way. If HTTP_PROXY, HTTPS_PROXY or ALL_PROXY is set, the az, azd and PowerShell sign-ins are skipped.

  2. Give that identity the role Cognitive Services OpenAI User on the resource (Cognitive Services User for Azure AI).

  3. Create the connection through the API or the Connect dialog on the Models page of the app. The CLI cannot do it; this is its real answer:

    the CLI can only connect the openai-compatible provider; every other provider is changed through the API or the app

    The API call is PUT /v1/models/connections/azure-openai with an admin session and a body of endpoint (https://<name>.openai.azure.com), status and reason.

  4. Test it. This is one metadata GET, no model call:

    Terminal window
    nuramesh models test azure-openai --team my-team --human human:you
    nuramesh models connections --team my-team
  5. Add the model’s catalog entry, with its processing scope (canada or global), and its price, on the Models page or through the API. Then check that a run would start:

    Terminal window
    nuramesh models check --team my-team --data synthetic
  • The adapter calls <endpoint>/openai/v1/chat/completions with a bearer token only; the model field is your deployment name.
  • NuraMesh does not retry an Azure OpenAI call. A 429, 500 or 503 fails that call after one request.
  • A 401 or 403 names the role above and az login, and never shows a token or the response body.
  • Customer data needs a catalog entry whose processing scope is canada. A global entry takes synthetic data only.

These steps were checked against the adapter with a fake transport. No live Azure call was made for this page, and only the CLI refusal in step 3 was run as a command.

Was this page helpful?