Create Azure Open AI

The demand for Azure OpenAI has skyrocketed due to its enterprise-grade security, compliance features, and seamless integration with existing Microsoft ecosystems. This comprehensive tutorial will provide you with everything needed to create and deploy Azure OpenAI services successfully.

Create Azure Open AI

Before diving into the creation process, let me explain why Azure OpenAI has become the preferred choice for many enterprises seeking to integrate AI.

Azure OpenAI Service combines OpenAI’s cutting-edge models (GPT-4, GPT-3.5-turbo, DALL-E, and Codex) with Microsoft Azure’s enterprise-grade infrastructure. This combination provides the advanced AI capabilities your business needs while maintaining the security, compliance, and reliability standards.

Key Benefits

Enterprise Security and Compliance:

  • SOC 2 Type II compliance
  • HIPAA eligibility for healthcare organizations
  • FedRAMP authorization for government contractors
  • Data residency within US borders
  • Advanced threat protection and monitoring

Business Advantages:

  • Integration with existing Microsoft 365 and Azure services
  • Enterprise-grade SLA with 99.9% uptime guarantee
  • Flexible pricing models for various business sizes
  • 24/7 Microsoft support for critical business operations
  • Advanced analytics and usage monitoring

Prerequisites

Here are the essential requirements you’ll need before starting:

Account and Subscription Requirements

RequirementDetailsTypical Processing Time
Azure SubscriptionActive subscription with billing enabledImmediate
Access RequestAzure OpenAI access approval1-7 business days
PermissionsOwner or Contributor roleImmediate

Technical Prerequisites:

  • Valid Azure subscription (Pay-as-you-go, Enterprise Agreement, or CSP)
  • Subscription must be in good standing with no billing issues
  • Administrator access to submit access requests
  • Valid business email address (no personal Gmail/Yahoo accounts)

Method 1: Using Azure Portal

This is the most user-friendly approach I recommend for business users and those new to Azure services.

  1. Log in to the Azure Portal (portal.azure.com)
  2. Search for “Azure OpenAI”.
create azure open ai

3. Click “Create” to start the configuration process.

How to create Azure Open AI

Configuration Settings:

On the Basics tab, fill in the details below.

Basics Tab:

  • Subscription: Select your approved Azure subscription
  • Resource Group: Click on the create new link to create a new resource group.
  • Region: East US 2 (recommended for the US East Coast)
  • Name: Unique name (e.g., mycompany-openai-prod-2025)
  • Pricing Tier: Standard S0 (most common for production)

Click on the Next button to navigate to the Networking tab.

create azure openai service

Networking Tab:

  • Network access: Public endpoint (start here, restrict later)
  • Virtual network: Configure if needed for enterprise security

Click on the next button.

setup azure openai service

Tags Tab:

You can specify the tags like below, but it’s not mandatory. You can leave it as it is if you don’t wish to specify any tag.

  • Environment: Production
  • Department: IT or specific business unit
  • CostCenter: Your internal cost allocation code
  • Owner: Technical contact email

Click on the Next button.

Finally, click on the Create button on the Review + Submit screen as shown in the screenshot below.

How to setup azure openai service

The Azure Open AI service has been created successfully, as shown in the screenshot below.

how to set up azure openai service

Deploy AI Models

After creating the resource, you need to deploy specific AI models. Here’s my recommended approach:

Model Deployment Process:

  1. Navigate to your newly created Azure OpenAI resource
  2. Click “Model deployments” in the left navigation
  3. Click “Create new deployment”
  4. Configure your first model:

Recommended Model Configuration:

ModelUse CaseDeployment NameTokens Per Minute
GPT-4Complex reasoning, analysisgpt-4-production10,000 TPM
GPT-3.5-turboGeneral chat, automationgpt-35-turbo-prod60,000 TPM
text-embedding-ada-002Search, recommendationstext-embedding-prod120,000 TPM
DALL-E 3Image generationdalle-3-prod2 requests/minute

Deployment Configuration Example:

{
  "deployment_name": "gpt-4-production",
  "model_name": "gpt-4",
  "model_version": "0613",
  "scale_type": "Standard",
  "capacity": 10
}

Method 2: Using Azure CLI

For DevOps teams and automated deployments, I prefer Azure CLI for consistency and version control.

Creating Azure OpenAI Resource via CLI

# Set deployment variables
RESOURCE_GROUP="rg-openai-production-eastus"
LOCATION="eastus2"
OPENAI_NAME="mycompany-openai-prod-2025"
SUBSCRIPTION_ID="your-subscription-id"

# Create resource group
az group create \
  --name $RESOURCE_GROUP \
  --location $LOCATION \
  --subscription $SUBSCRIPTION_ID

# Create Azure OpenAI resource
az cognitiveservices account create \
  --name $OPENAI_NAME \
  --resource-group $RESOURCE_GROUP \
  --location $LOCATION \
  --kind OpenAI \
  --sku S0 \
  --custom-domain $OPENAI_NAME \
  --subscription $SUBSCRIPTION_ID

# Verify creation
az cognitiveservices account show \
  --name $OPENAI_NAME \
  --resource-group $RESOURCE_GROUP \
  --query "{name:name, location:location, sku:sku.name, endpoint:properties.endpoint}"

After executing the above query, I got the expected output as shown in the below screenshot.

how to create azure open ai account

The Azure Open AI has been created successfully.

create azure open ai account

Deploying Models via CLI

# Deploy GPT-4 model
az cognitiveservices account deployment create \
  --name $OPENAI_NAME \
  --resource-group $RESOURCE_GROUP \
  --deployment-name "gpt-4-production" \
  --model-name "gpt-4" \
  --model-version "0613" \
  --model-format OpenAI \
  --sku-capacity 10 \
  --sku-name "Standard"

# Deploy GPT-3.5-turbo model
az cognitiveservices account deployment create \
  --name $OPENAI_NAME \
  --resource-group $RESOURCE_GROUP \
  --deployment-name "gpt-35-turbo-prod" \
  --model-name "gpt-35-turbo" \
  --model-version "0613" \
  --model-format OpenAI \
  --sku-capacity 60 \
  --sku-name "Standard"

# List deployed models
az cognitiveservices account deployment list \
  --name $OPENAI_NAME \
  --resource-group $RESOURCE_GROUP

Method 3: Using PowerShell

We can also use the below powershell script to create the Azure Open AI.

PowerShell Setup and Authentication

# Install Azure PowerShell module
Install-Module -Name Az -Repository PSGallery -Force -AllowClobber

# Connect to Azure
Connect-AzAccount

# Set subscription context
Set-AzContext -SubscriptionId "your-subscription-id"

# Verify connection
Get-AzContext

Creating Resources with PowerShell

# Define deployment variables
$resourceGroupName = "rg-openai-production-eastus"
$location = "East US 2"
$openAIName = "mycompany-openai-prod-2025"
$subscriptionId = "your-subscription-id"

# Create resource group
New-AzResourceGroup `
  -Name $resourceGroupName `
  -Location $location

# Create Azure OpenAI resource
$openAIAccount = New-AzCognitiveServicesAccount `
  -ResourceGroupName $resourceGroupName `
  -Name $openAIName `
  -Location $location `
  -Kind "OpenAI" `
  -SkuName "S0" `
  -CustomSubdomainName $openAIName

# Display resource information
Write-Output "Resource Name: $($openAIAccount.AccountName)"
Write-Output "Endpoint: $($openAIAccount.Endpoint)"
Write-Output "Location: $($openAIAccount.Location)"
Write-Output "Status: $($openAIAccount.ProvisioningState)"

# Get API keys
$keys = Get-AzCognitiveServicesAccountKey -ResourceGroupName $resourceGroupName -Name $openAIName
Write-Output "Primary Key: $($keys.Key1)"
Write-Output "Secondary Key: $($keys.Key2)"

After executing the above PowerShell script, the Azure Open AI service has been created successfully as shown in the screenshot below.

How to create azure openai service

Video Tutorial

Conclusion

The Azure OpenAI landscape continues evolving rapidly, with new models, features, and capabilities launching regularly. Remember that creating Azure OpenAI is just the first step in your AI journey . Start implementing these techniques today, and within weeks, you’ll have a robust, scalable Azure OpenAI deployment in your organization.

You may also like the following articles

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!