Share via

accessing AI foundry/ agent creation / thread creation

Bhatt, Nitin 0 Reputation points
2026-01-05T16:40:33.8766667+00:00

How can we access Ai foundry features like agent creation / thread creation etc. within azure foundryportal. why is it giving me error that it has to be public access ? I am in same resource group and have all acccess with in portal ( not from outside)

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. Anshika Varshney 13,305 Reputation points Microsoft External Staff Moderator
    2026-01-05T17:57:57.2566667+00:00

    Hi Bhatt, Nitin,

    Thank you for posting your question on Microsoft Q&A.

    The behavior you’re seeing (agent creation / thread creation failing unless public access is enabled) is expected based on how Azure AI Foundry Agent Service networking works, depending on the setup type you’re using.

    By default, Azure AI Foundry projects are created using the Basic Agent Setup. In this setup:

    • The platform uses Microsoft‑managed resources
    • Agent creation and thread creation require public network accessibility
    • If your Azure AI Search, storage, or other dependent resources have public access disabled, the portal will block agent/thread creation

    That’s why you are seeing the error that public access is required even though everything is in the same resource group.

    You have two supported options, depending on your security requirements.

    1.Keep Basic setup (Quickest fix)

    If you are currently testing or prototyping, you can:

    • Enable Public network access on the dependent resources (for example:
      • Azure AI Search
      • Storage account used by the project)
    • Retry agent creation and thread creation in the AI Foundry portal

    This aligns with how the Basic Agent Setup is designed.

    2.Use Standard Agent Setup with Private Networking (Recommended)

    If your requirement is to keep all resources private, you should use the Standard Agent Setup, which fully supports:

    • Private endpoints
    • BYO Azure AI Search
    • BYO Storage
    • BYO Thread storage (Cosmos DB)
    • VNet isolation for agent execution

    With this setup:

    • Agents run inside your VNet
    • No public access is required
    • Thread creation works securely with private resources

    Note: Full private networking is currently supported via the Classic Foundry experience or SDK/CLI-based deployment, not completely through the New Portal UI.

    Official documentation:

    Once networking is configured correctly, thread creation is supported via:

    • Portal
    • SDK
    • REST API

    Thread API documentation:

    In Short: The error is not a permission issue. It’s caused by using Basic Agent Setup with private-only resources.

    Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.

    Thankyou!

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.