Skip to content
Latest (currently 2026.8.0) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentregistry.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Azure AI Foundry projects

Page as Markdown

Discover agents that are deployed in your Foundry project and monitor these deployments in the registry UI.

Before you begin

  1. Set up an OIDC provider. This guide assumes that you installed Keycloak. Make sure to follow the General setup tab to install Keycloak with the required realm settings, clients, and secrets.

  2. Install Solo Enterprise for agentregistry.

  3. Connect Solo Enterprise for agentregistry to your Azure AI Foundry project.

    Note

    Solo Enterprise for agentregistry does not create or deploy AI Foundry agents. The MicrosoftFoundry runtime is a discovery-only runtime.

Step 1: Create a Foundry agent

Create an agent and deploy it to your Foundry project. The following steps show how to create agents by using the Azure portal or a Python script.

  1. Open the AI Foundry home page ai.azure.com and select your Foundry project from the project list.
  2. Open the Models view, select a model, such as gpt-5.4, and click Deploy.
  3. Open the Agents view and click New agentBuild an agent.
  4. Enter a name for your agent and click Create.
  5. Configure your agent.
    1. In the agent overview page, select the model deployment that you want your agent to use.
    2. Add instructions for your agent. For example, you can use the following instruction.
      You are a concise test agent for AgentRegistry discovery.
    3. Save or create the agent.
  6. Open the agent Playground and send a test message to confirm the agent runs. For example, you can ask the agent what it can do for you.

Note

To create agents with the Python SDK, your personal az login identity must have the Azure AI Developer role on the Foundry project. This permission is separate from the Foundry User role that you granted to the Entra app registration earlier as this role is used by Solo Enterprise for agentregistry to discover deployed agents.

Use this approach for a repeatable, scripted setup. Requires azure-ai-projects>=2.0.0.

  1. Set up a Python virtual environment and install the required packages.

    python -m venv .venv
    source .venv/bin/activate
    pip install azure-ai-projects azure-identity
  2. Log in to Azure.

    az login
  3. Set an environment variable for the model deployment name. You can find available model deployment names under ModelsDeployments in your Foundry project.

    export MODEL_DEPLOYMENT_NAME=<model-deployment-name>
  4. Create a Python script file. The file completes the following tasks:

    • Connects to your Foundry project by using your az login credentials.
    • Creates a minimal prompt-based agent that is named agentregistry-smoke-test and backed by your deployed model.
    • Prints the agent name and version on success.
    cat > create-foundry-agent.py << 'EOF'
    import os
    from azure.ai.projects import AIProjectClient
    from azure.ai.projects.models import PromptAgentDefinition
    from azure.identity import DefaultAzureCredential
    
    with AIProjectClient(
        endpoint=os.environ["AZURE_PROJECT_ENDPOINT"],
        credential=DefaultAzureCredential(),
    ) as project:
        agent = project.agents.create_version(
            agent_name="agentregistry-smoke-test",
            definition=PromptAgentDefinition(
                model=os.environ["MODEL_DEPLOYMENT_NAME"],
                instructions="You are a concise test agent for AgentRegistry discovery.",
            ),
        )
        print(f"Created Foundry agent: {agent.agent_name} (version: {agent.version})")
    EOF
  5. Run the script.

    python create-foundry-agent.py

    Example output:

    Created Foundry agent: agentregistry-smoke-test (version: 1)
    

Step 2: Verify discovery

After the runtime is created, Solo Enterprise for agentregistry triggers an initial sync to list deployed agents as Instances in the registry UI.

Note

It can take a few minutes for the sync to complete and discovered agents to show up in the registry UI.

  1. Open Instances view in the registry UI.

  2. From the Managed drop down, select Unmanaged, Discovered Resources.

  3. Verify that you see the Azure Foundry agent that you created earlier.

Note

If agents do not appear, check the following in your runtime setup.

  • The runtime uses the Foundry project endpoint, not the account endpoint.
  • The Entra app has the Foundry User role assigned on the Foundry project resource, not only at the resource group or subscription level.
  • The secret exists and status.dataKeys includes clientSecret.
  • The Foundry project contains at least one agent.

For detailed error information, check the agentregistry server logs for foundry: API returned or resolve client secret messages.