How to get Azure Open AI keys and endpoint

Introduction

Recently, MSFT has released Teams Open AI library modules. With these services, you can make your Teams Apps more intelligent, Contextual and run meaningful and fluid conversations. These Open AI modules do all the hard work behind the scenes, and it's your job to configure these smart settings. You can learn more about Azure Open AI from the references section. In this article, we will see how to get the Open AI registration keys and endpoints that are needed to interact with these Open AI cognitive services.

Prerequisites

You need to have the following prerequisites to get started:.

  • An active Azure subscription.
  • Auzre OpenAI Service access to your subscription 
  • Note: If you have an organization Visual Studio subscription, the OpenAI service may not be available for your subscription. Since this service is in Public Preview at the time of writing this article, you may be required to fill out a request form that is approved to get started with the OpenAI service in Azure.  

Below are the steps to get the Azure Open AI registration keys and endpoint.

(1) Login to the Azure Portal. Sign in with your subscription username and password.

(2) Search for Azure OpenAI

 

 

(3) You will be taken to the Cognitive Services | Azure OpenAI page. If you do not have any other Open AI services set up, you should see the following screen that says 'No Azure OpenAI to display'. Click on 'Create Azure Open AI'.

 

(4) Enter the details in the 'Basic Tab'.

  • Subscription: Choose your subscription
  • Resource group: It could be anything. In this case, I have given as teamsai-rg
  • Region: Select your closest region. In this case, I have East US as the closest region.
  • Name: It can be anything. Remember, only hyphens and alpha-numeric characters are allowed. In this case, I have given it as TeamsOpenAIDemo.
  • Pricing tier: Standard S0

 

 

(5) In this Network section, you can select who can access this resource. In this case, I am leaving it as default, which means these resources can be accessed from the internet. There are also advanced options where you can restrict access to specific networks and endpoints.

 

 

(6) In this 'Tags' section, you can provide the tag in the form of a key-value pair. As a best practice, it is recommended to give as it has advantages while applying the policy or reviewing the usage. In this case, I have provided the tags as the following key-value pairs:

Key Value
Environment Development
Department TailspinIT

 

 

(7) Finally, in the 'Review + Submit' section, once everything is submitted and validation is passed, you should see the option to create the Azure OpenAI service.

 

 

(8) Validate the deployment and get the Azure OpenAI registration Key needed to interact with Azure OpenAI cognitive services. If everything is successful, you will see the following screen saying, 'Your deployment is complete.

 

 

(9) Click on 'Go to resource' from the above screenshot. From 'Resource Management', click on 'Keys and Endpoint'. This is required to interact with OpenAI services.

 

 

Note. With these steps, you now have Azure open endpoints and keys that you can use in Teams AI modules to develop intelligent and contextual conversations. 

Conclusion

Thus, in this article, we have seen what OpenAI is and how to create OpenAI service instances using Azure Portal, and finally get the keys and endpoint details to interact with these cognitive services

References