Skip to content

atingupta2005/azure-ai-102-mar-24

Repository files navigation

AI-102

Lab Setup

Create Windows 11 VM in Azure Cloud

Install Choco in powershell

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Exit powershell

exit

Open powershell and install

choco install git -y
choco install googlechrome -y
choco install vscode -y
choco install python -y
choco install dotnetcore-sdk -y
choco install azure-cli -y
Restart-Computer

Clone Repos in another powershell

md c:\ai-102
cd c:\ai-102
git clone https://github.com/MicrosoftLearning/mslearn-ai-services
git clone https://github.com/MicrosoftLearning/mslearn-ai-vision
git clone https://github.com/MicrosoftLearning/mslearn-ai-language
git clone https://github.com/MicrosoftLearning/mslearn-ai-document-intelligence
git clone https://github.com/MicrosoftLearning/mslearn-knowledge-mining/
git clone https://github.com/MicrosoftLearning/mslearn-openai
dir

Open CMD and Create Python Virtual Environment

  • Note: Do not open Powershell
python -m venv c:\venv
c:\venv\Scripts\activate
pip install python-dotenv
pip install azure-ai-textanalytics==5.3.0
pip install azure-ai-textanalytics==5.3.0
pip install azure-identity==1.5.0
pip install azure-keyvault-secrets==4.2.0
pip install setuptools
pip install azure-ai-vision-imageanalysis==1.0.0b1
pip install pillow==6.2.2
pip install matplotlib
pip install azure-cognitiveservices-vision-customvision==3.1.0
pip install azure-cognitiveservices-vision-face==0.6.0
pip install azure-ai-vision-imageanalysis==1.0.0b1
pip install azure-ai-language-questionanswering
pip install azure-ai-language-conversations
pip install azure-ai-textanalytics==5.3.0
pip install azure-ai-translation-text==1.0.0b1
pip install azure-cognitiveservices-speech==1.30.0
pip install playsound==1.2.2
pip install azure-search-documents==11.0.0
pip install Flask

Connect to Azure CLI

az login -u [email protected] -p password
az account show

Provision Azure resources

Create an Azure AI services multi-service account resource

  • Name: ag-ai-services-multi
  • Resource Group: rg-ai-practice
  • Region: Choose from East US, West Europe, West US 2

Get key in CLI:

az cognitiveservices account keys list --name ag-ai-services-multi --resource-group rg-ai-practice

Create Key Vault

  • Name: kv-ai-practice
  • Secret Name: AI-Services-Key
  • Secret Value: The key of Azure AI services multi-service account resource

Create Storage account

  • Name: customclassifyagmar24
  • Region: Choose the same region you used for your Azure AI Service resource

Important URLs:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published