Get Azure OpenAi deployments in API

Maya Shauli 66 Reputation points Microsoft Employee
2023-09-18T20:22:00.1533333+00:00

Hey
How can I retrieve the list of the deployments from my azure open ai instance?

In worked with old API and seems not supported anymore.
Last working version: 2023-03-15-preview
curl "https://XXXXX.openai.azure.com/openai/deployments?api-version=2023-03-15-preview" -H "api-key: XXXXXXXXXXXXXXXXXXX"

Can you assist with the new way to do it?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,226 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,897 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Travis Wilson 115 Reputation points Microsoft Employee
    2023-09-26T00:04:10.72+00:00

    The standalone data plane API was retired in favor of the centralized management plane API for deployments.

    https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/deployments/list?tabs=HTTP

    The above is consistent with what you can observe while monitoring Azure AI Studio request traffic and viewing deployments there -- the list is populated using an HTTP GET following:

    https://management.azure.com/subscriptions/...subscription-id-here.../resourceGroups/...resource-group-here.../providers/Microsoft.CognitiveServices/accounts/...resource-here.../deployments?api-version=2023-05-01
    
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.