It is a sequence of Azure AI workshop that I attended just lately. Within the workshop we labored on totally different use instances. There are Palms-On-labs on every use case that can assist us to embrace instruments obtainable on azure platform. I simply wish to share my learnings on azure companies for the enterprises, which can improve their experience within the subject of AI. Be sure that to stay with the labs till the top of this workshop sequence. This text is setup azure surroundings for the upcoming labs.
Azure OpenAI Service brings the generative AI fashions developed by OpenAI to the Azure platform, enabling you to develop highly effective AI options that profit from the safety, scalability, and integration of companies offered by the Azure cloud platform. Step one to make use of an Azure Open AI mannequin is to provision an Azure OpenAI useful resource. On this lab, you’ll discover ways to get began with Azure OpenAI service by provisioning Azure OpenAI useful resource within the Azure portal.
Goals
- To Create azure free path account and register needed Azure useful resource suppliers.
- To create an Azure OpenAI useful resource and retrieve key and endpoint.
- To put in the required Python libraries.
Azure is providing free path account with USD 200 azure credit score, some well-liked companies free for 12 months and 55+ companies free all the time. To know extra about discuss with the hyperlink. For college kids, there are additional advantages i.e. No bank card is required to create azure account.
- Open your browser, navigate to the deal with bar, sort or paste the next URL: https://portal.azure.com/, then press the Enter button.
Within the Check in window, enter the Username and click on on the Subsequent button.
Then, enter the password and click on on the Check in button.
In Keep signed in? window, click on on the Sure button.
On Welcome to Microsoft Azure dialog field, click on on Possibly later button.
Within the Azure portal search field, sort Subscriptions, then click on on Subscriptions below Companies.
Within the Subscriptions web page, navigate and click on on subscription obtainable.
Within the Azure Subscription web page left-sided navigation menu, navigate to the Settings part, then click on on the Useful resource Suppliers.
Within the Azure Go — Sponsorship | Useful resource suppliers web page, navigate to the search field and kind Microsoft.Storage. Click on on Microsoft.Storage below Supplier. Then, within the Useful resource Supplier Particulars pane that seems on the best facet, choose the most recent API Variations, then click on on the Register as proven within the under picture.
You’ll see a notification stating — Efficiently registered useful resource supplier as soon as the registration is profitable. You too can view the notification by clicking on the bell icon within the Azure portal.
Within the Azure Go — Sponsorship | Useful resource suppliers web page, navigate to the search field and kind Microsoft.Safety. Click on on Microsoft.Safety below Supplier. Then, within the Useful resource Supplier Particulars pane that seems on the best facet, choose the most recent API Variations, then click on on the Register as proven within the under picture.
You’ll see a notification stating — Efficiently registered useful resource supplier as soon as the registration is profitable. You too can view the notification by clicking on the bell icon within the Azure portal.
Repeat the above steps to register the next Useful resource suppliers.
- Microsoft.CognitiveServices
- Microsoft.Search
- Microsoft.Sql
- Microsoft.Net
- Microsoft.ManagedIdentity
From the Azure portal dwelling web page, click on on Azure portal menu represented by three horizontal bars on the left facet of the Microsoft Azure command bar as proven within the under picture.
Navigate and click on on + Create a useful resource.
On Create a useful resource web page, within the Search companies and market search bar, sort Azure OpenAI, then press the Enter button.
Within the Market web page, navigate to the Azure OpenAI part, click on on the Create button dropdown, then choose Azure OpenAI as proven within the picture. (In case, you’ve already clicked on the Azure OpenAI tile, then click on on the Create button on the Azure OpenAI web page).
Within the Create Azure OpenAI window, below the Fundamentals tab, enter the next particulars and click on on the Subsequent button.
Subscription : Choose the assigned subscription
Useful resource group : Click on on
Create new > Enter a reputation, that must be distinctive
Area : Choose East US
Title : Azure-openai-testXX (XX could be a distinctive quantity, you possibly can add extra digits after XX to make the title distinctive) (right here, we entered Azure-open-test39)
Pricing tier : Choose Commonplace S0
Within the Community tab, go away all of the radio buttons within the default state, and click on on the Subsequent button.
Within the Tags tab, go away all of the fields within the default state, and click on on the Subsequent button.
Within the Evaluate+submit tab, as soon as the Validation is Handed, click on on the Create button.
Await the deployment to finish. The deployment will take round 2–3 minutes.
On Microsoft.CognitiveServicesOpenAI window, after the deployment is accomplished, click on on the Go to useful resource button.
In your Azure-open-testXX | Mannequin deployments window, navigate to the Useful resource Administration part, and click on on Keys and Endpoints.
In Keys and Endpoints web page, copy KEY1, KEY 2, and Endpoint values and paste them in a notepad as proven within the under picture, then Save the notepad to make use of the data within the upcoming lab.
- Notice: You should utilize both KEY1 or KEY2. All the time having two keys means that you can securely rotate and regenerate keys with out inflicting a service disruption.
In your home windows search bar, sort Command Immediate. Within the Command Immediate App dialog field, navigate and click on on Run as administrator. When you see the dialog field — Do you wish to enable this app to make modifications to your machine? then click on on the Sure button.
Transfer into the folder the place the Python was put in and run the pip command. i.e., C:UsersAdmin
python -m pip set up --upgrade pip
Run the next command to put in Python libraries — openai, num2words, matplotlib, plotly, scipy, scikit-learn, pandas, tiktoken
pip set up openai num2words matplotlib plotly scipy scikit-learn pandas tiktoken
Run the under command to put in the Transformers bundle:
Abstract
On this lab, you’ve created a azure free path account and registered the mandatory Azure useful resource suppliers, then provisioned Azure OpenAI useful resource. You’ve discovered learn how to retrieve keys and endpoint data that will likely be used for deploying Azure OpenAI fashions within the upcoming labs. Lastly, you’ve efficiently put in Python libraries.
Please don’t delete the Useful resource group and Azure OpenAI Service .The identical Useful resource group and Azure OpenAI Service will likely be used all through all of the labs.