AI-900-Generative AI in Azure AI Foundry Portal
Generative AI in Azure AI Foundry Portal Step 1 : Go to the Microsoft Azure Portal and sign in using your credentials. Step 2 : In searchbar search for Azure AI Foundry. Step 3 : On the AI Foundry page select Create an AI Foundry Resource. Step 4 : Add details and click create. Step 5 : Click on Go to resource. Click on Go to Azure AI Foundry Portal. Step 6 : From sidebar go to the Playground. Step 7 : Select create new deployment and select from base models. In the searchbar search for gpt-4o. Click Confirm. Add details and click Deploy. Review every menu in Chat Playground. Add any sample Prompt. Go to the code section and review the code. import os import base64 from openai import AzureOpenAI from azure.identity import DefaultAzureCredential, get_bearer_token_provider endpoint = os.getenv("ENDPOINT_URL", "https://YOUR-RESOURCE-NAME.openai.azure.com/") deployment = os.getenv("DEPLOYMENT_NAME", "YOUR-DEPLOYMENT-NAME") # Initializ...