Prepare for an AI development project
In this exercise, you use Azure AI Foundry portal to create a project, ready to build an AI solution.
This exercise takes approximately 30 minutes.
Note: Some of the technologies used in this exercise are in preview or in active development. You may experience some unexpected behavior, warnings, or errors.
Open Azure AI Foundry portal
Let’s start by signing into Azure AI Foundry portal.
-
In a web browser, open the Azure AI Foundry portal at
https://ai.azure.com
and sign in using your Azure credentials. Close any tips or quick start panes that are opened the first time you sign in, and if necessary use the Azure AI Foundry logo at the top left to navigate to the home page, which looks similar to the following image (close the Help pane if it’s open): -
Review the information on the home page.
Create a project
An Azure AI project provides a collaborative workspace for AI development. Let’s start by choosing a model that we want to work with and creating a project to use it in.
Note: AI Foundry projects can be based on an Azure AI Foundry resource, which provides access to AI models (including Azure OpenAI), Azure AI services, and other resources for developing AI agents and chat solutions. Alternatively, projects can be based on AI hub resources; which include connections to Azure resources for secure storage, compute, and specialized tools. Azure AI Foundry based projects are great for developers who want to manage resources for AI agent or chat app development. AI hub based projects are more suitable for enterprise development teams working on complex AI solutions.
- In the home page, in the Explore models and capabilities section, search for the
gpt-4o
model; which we’ll use in our project. - In the search results, select the gpt-4o model to see its details, and then at the top of the page for the model, select Use this model.
- When prompted to create a project, enter a valid name for your project and expand Advanced options.
- Select Customize and specify the following settings for your hub:
- Azure AI Foundry resource: A valid name for your Azure AI Foundry resource
- Subscription: Your Azure subscription
- Resource group: Create or select a resource group
- Region: Select any AI Services supported location*
* Some Azure AI resources are constrained by regional model quotas. In the event of a quota limit being exceeded later in the exercise, there’s a possibility you may need to create another resource in a different region.
- Select Create and wait for your project, including the gpt-4 model deployment you selected, to be created.
-
When your project is created, the chat playground will be opened automatically so you can test your model:
-
In the navigation pane on the left, select Overview to see the main page for your project; which looks like this:
Note: If an Insufficient permissions error is displayed, use the Fix me button to resolve it.
-
At the bottom of the navigation pane on the left, select Management center. The management center is where you can configure settings at both the resource and project levels; which are both shown in the navigation pane.
The resource level relates to the Azure AI Foundry resource that was created to support your project. This resource includes connections to Azure AI Services and Azure AI Foundry models; and provides a centralplace to manage user access to AI development projects.
The project level relates to your individual project, where you can add and manage project-specific resources.
- In the navigation pane, in the section for your Azure AI Foundry resource, select the Overview page to view its details.
- Select the link to the Resource group associated with the resource to open a new browser tab and navigate to the Azure portal. Sign in with your Azure credentials if prompted.
-
View the resource group in the Azure portal to see the Azure resources that have been created to support your Azure AI Foundry resource and your project.
Note that the resources have been created in the region you selected when creating the project.
- Close the Azure portal tab and return to the Azure AI Foundry portal.
Review project connections
Your Azure AI Foundry project and the Azure AI Foundry resource to which it belongs include connections to resources that you can use in AI applications.
- In the Management center page, in the navigation pane, under your project, select Go to project.
- In the project Overview page, view the Endpoints and keys section; which contains endpoints and authorization keys that you can use in your application code to access:
- The Azure AI Foundry project and any models deployed in it.
- Azure OpenAI in Azure AI Foundry models.
- Azure AI services
Test a generative AI model
Now that you know something about the configuration of your Azure AI Foundry project, you can return to the chat playground to explore the model you deployed.
- In the navigation pane on the left for your project, select Playgrounds
- Open the Chat playground, and ensure that your gpt-4o model deployment is selected in the Deployment section.
-
In the Setup pane, in the Give the model instructions and context box, enter the following instructions:
You are a history teacher who can answer questions about past events all around the world.
- Apply the changes to update the system message.
-
In the chat window, enter a query such as
What are the key events in the history of Scotland?
and view the response:
Summary
In this exercise, you’ve explored Azure AI Foundry, and seen how to create and manage projects and their related resources.
Clean up
If you’ve finished exploring Azure AI Foundry portal, you should delete the resources you have created in this exercise to avoid incurring unnecessary Azure costs.
- In the Azure portal at
https://portal.azure.com
, view the contents of the resource group where you deployed the resources used in this exercise. - On the toolbar, select Delete resource group.
- Enter the resource group name and confirm that you want to delete it.