Introduction
Microsoft has provided Azure OpenAI service, a cloud solution to deploy, customize and host large language models. It provides you with the best of OpenAI latest models and APIs with security and scalability in azure Cloud platform. For this we all know that Microsoft has partnered with OpenAI to enable Azure OpenAI users to get access and use the newest language model innovations.
Below are the models that the Azure OpenAI supports:
GPT-4 models: These are the latest generation of GPT models which can generate code completion and natural language based on the natural language prompts.
GPT 3.5 models: Based on the natural language prompt, it can generate natural language and code completion. Especially, GPT-35-turbo models are designed for chat-based interactions as well as it works perfectly with most of generative AI scenarios.
Embedding models: These models generate numeric vectors based on the input text and is useful in language analytics. These models compare the text sources for similarities.
Dalle models: Based on natural language it generates images. Currently it is in preview mode.
This article demonstrates followings:
- Create a resource group for Open AI.
- Create Azure OpenAI service.
- Demo to use Azure OpenAI Studio.
- Create and Deploy your Azure OpenAI model in Azure OpenAI studio and get Endpoint and key of the service.
Now, let’s jump to get started with Azure OpenAI Service.
Prerequisites
You need to have following things to get started with OpenAI learning tutorials:
- Azure subscription which has been approved for the Azure OpenAI service.
You can sign up for free Azure Subscription here: https://azure.microsoft.com/free
- Access to OpenAI Service
And then you can request to access the Azure OpenAI service here: https://aka.ms/oaiapply
Let’s begin with the steps:
Create Resource Group
In this section we will create a resource group that we will use for Azure OpenAI Service later in the demonstration.
Step 1: Create new Resource group for Azure OpenAI service under the subscription which has OpenAI service enabled.

Give the resource group name and choose the available region. At the time of this article write up there are certain regions that have only access to the Azure OpenAI service. So for available region you can check here.
Step 2: Review and Create
Once the region is selected you can click on Review and create and then click on create.

Creating Open AI Service
Step 1: Create OpenAI service
Now, we will create a new Azure OpenAI service. For this go to Azure OpenAI service an click on Create.

Then provide details as shown below and click on Next. Note: if you have multiple resource groups then select the one which has access to Open AI Service. I didn’t have resources group that has access to Open AI so I just created in previous section. If you already have then you don’t have to create new.

Step 2: select the network as per your need.

Step 3: Give tags.

After that, click on create as depicted below.

Deployment may take a few seconds.

Now your Open AI service is created. You can go to your service and explore the Azure OpenAI Studio further.

Deploying OpenAI Model in Azure OpenAI Studio
In this section we will learn to deploy OpenAI models in Azure OpenAI Studio.
Step 1: Login to your OpenAI Studio where you can deploy, manage and explore the AI models. Firstly we need to create a new deployment for a model in OpenAI studio.

This article will demonstrate sample example of GPT-35 turbo model.
Step 2: Click on Create new deployment and provide the information as depicted below.
Model: gtp-35-turbo
Model version: default
Deployment name: my-gpt-demo-model
Then click on the Create button.

Step 3 : Go to the playground.
In the left pane of Azure OpenAI studio go to completion under the Playground as shown below.

Step 4: Select your model in Deployments and in the Examples dropdown, you can see there are lots of options however, we will select Generate a quiz. So, our model will generate a quiz.

At the bottom we have to set the number of tokens detected in the text. Tokens are the basic units of prompts-essentially words or word-parts in the text.
Once you select the example: generate quiz option you will get the summary of quiz as illustrated below.
Step 5: Get Endpoint and Key
Once it is generated you can go to View code section and get the Endpoint and key of the service and then this you can use in your application.
Additionally, you can get the sample code in different languages such as python, json, C3 and curl

Conclusion
Hence this article has demonstrated how to get started with Azure OpenAI services as well as demonstrated to create an OpenAI service and deploy the OpenAI model with an example of GPT turbo model to generate a quiz with all necessary steps. I hope you will find it useful to create your own OpenAI service and integrate it in your application.
References
https://learn.microsoft.com/en-us/training/modules/fundamentals-generative-ai/4-azure-openai