Intro
Table of Contents
About the Author
About the Technical Reviewer
Chapter 1: Introduction to Azure AI and OpenAI
About Azure and Azure OpenAI
Azure AI vs. Azure OpenAI
Azure AI Services
Azure OpenAI
Understanding Prompt Engineering and GPT Models
Large Language Models (LLMs)
GPT Models
Key Differences Between LLMs and GPT
Prompt Engineering Strategies
Azure OpenAI Models
Limits, Capacity, Context, and Tokens
Understanding Context and K
The Benefits of Using a Large Context Window
Cost of Azure OpenAI Models
Count Tokens
Versions and Updates
Auto-update
Azure OpenAI Models Retirement Dates
Azure OpenAI Models Deprecated Key Dates
Azure OpenAI Subscription Limits
Dynamic Quota
Monitoring Capacity
Best Practices for Azure OpenAI Resource Monitoring
Programming Languages
Azure OpenAI REST API
Getting a Base Model Using REST API
Azure OpenAI Assistants vs. Chat Completions
Assistants API
Components of the Assistants API
Handy Resources
Chapter Summary
Chapter 2: Install Tools (Azure CLI, Azure PowerShell, VS Code, Copilot)
Create a Microsoft Azure Account
Request Access to Azure OpenAI Service
Azure SDK for .NET
Package List
Install .NET
Windows WinGet
Visual Studio Code
Install VS Code
Install Extensions
Extensions List
Visual Studio 2022
Visual Studio 2022 Preview
Install Azure PowerShell
Sign In to Azure Using Azure PowerShell
Install Azure CLI
Enable Azure CLI Tab Completion (Windows Only)
Create a PowerShell Profile
Azure Cloud Shell
Use Azure Cloud Shell
Use Azure Cloud Shell with VS Code
Install Terraform
High-Level Example of Terraform
Install
Install Terraform on macOS
Enable Terraform Tab Completion
Install Terraform on Linux
Install Terraform on Ubuntu Linux
Enable Terraform Tab Completion on Ubuntu
Install Terraform on Windows
Install Postman
Install Git
How to Use Git
GitHub Copilot
How to Use GitHub Copilot
Chapter Summary
Chapter 3: Azure .NET SDK for Azure OpenAI and AI Services
Introduction
Deploy Azure OpenAI Resource
Get Endpoint and API Key Information
Deploy a Model
Use Chat Playground to Test the Model
View Code and Endpoint Details
Deploy to Web App
Create a C# Console Application
Adds Tokenizer Configuration Files
Add Packages
Add Code
Create Environment Variables
Run Application
Use Terraform to Create Azure OpenAI Resource and Deployment
Terraform Configuration (main.tf)
Deploy Using Terraform
Verify Deployment
Destroy Deployment
Use Azure CLI to Create Azure OpenAI Resource and Deployment
Create Resources
Azure CLI Tools
Run Azure CLI Code
Learn More About Azure CLI AI Services
Use Azure PowerShell to Create Azure OpenAI Resource and Deployment
Create Resources
PowerShell Script: Aoi-deploy.ps1
Retrieve Information