Microsoft에서 관리하는 전 세계 데이터 센터 네트워크를 통해 애플리케이션과 서비스를 빌드, 배포, 관리하기 위한 클라우드 컴퓨팅 플랫폼 및 인프라입니다.
Inquiry on Using "Grounding with Bing Search" Without Azure CLI in Node.js Environment
Dear Microsoft Azure Support Team,
We are currently operating a Node.js-based backend system that uses the following approach to integrate Bing Search with Azure OpenAI:
- We use
axiosto call the Bing Search API and retrieve results,
Process and customize the results internally,
Then pass the refined content to Azure OpenAI for generating responses.
We are now looking to adopt the “Grounding with Bing Search” capability recently introduced. However, the official documentation primarily focuses on Python SDKs and assumes configuration via Azure CLI, which is difficult to adopt directly in our current stack.
We are seeking guidance on whether it is possible to integrate this new feature with minimal changes in our current environment, under the following conditions:
Our requirements and constraints:
We need to maintain a Node.js backend (Python or CLI-based workflows are not feasible for us).
We prefer not to use DefaultAzureCredential or Azure CLI, and instead call the service directly using HTTP (e.g., axios, curl).
Our main requirement is that AI responses include annotated source references from Bing grounding.
We want to avoid using Azure AD credentials (client ID, client secret, tenant ID), and would prefer to authenticate using only the agent API key if possible.
As a fallback, we are exploring the REST API approach, but it’s unclear:
What exactly is required as the “agent token” for authentication?
How can we obtain or construct it in a purely HTTP-based flow?
What we would like to know:
Is there any official or alternative method to implement “Grounding with Bing Search” entirely within a Node.js environment?
Can this be done using only the agent’s API key, without relying on Azure CLI or AD-based credentials?
If we use a REST API approach, could you clarify:
What the agent access token refers to,
How to obtain it,
And whether any examples exist for calling the service using `curl` or `axios`?
We have already provisioned the necessary Bing Search and Azure OpenAI resources via the Azure Portal, and we have an Agent configured.
We would appreciate any sample code, documentation, or guidance that helps us move forward while keeping our environment lightweight and minimal.
Thank you in advance for your assistance.