This is a simple C# console application that demonstrates how to connect to Azure AI services for experimentation purposes.
- Connects to Azure AI Project resources using the Azure SDK.
- Demonstrates authentication with Azure using
DefaultAzureCredential
. - Lists connections from an Azure AI Project resource.
- Visual Studio 2022
- .NET Framework 4.7.2
- An active Azure subscription
- An Azure AI Project resource endpoint
- Azure CLI (for local authentication)
-
Clone the repository:
-
Open the solution in Visual Studio 2022.
-
Install required NuGet packages:
Azure.Identity
Azure.AI.Projects
You can install them using the Package Manager Console:
-
Configure authentication:
- Sign in to Azure in Visual Studio, or
- Install Azure CLI and run
az login
in your terminal.
-
Set your Azure AI Project endpoint:
- Update the
projectEndpoint
variable inProgram.cs
with your Azure AI Project resource endpoint.
- Update the
- Build and run the application.
- The program will attempt to connect to your Azure AI Project and list available connections.