Proposed Pull Request Change

title description author ms.author ms.topic ms.date ms.subservice ms.custom
Configure "BYOM" Endpoint Authentication for Edge RAG Learn how to configure API-key based authentication for Edge RAG to securely manage and access resources across environments. cwatson-cat cwatson how-to 10/29/2025 edge-rag ['build-2025']
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Configure "BYOM" Endpoint Authentication for Edge RAG description: "Learn how to configure API-key based authentication for Edge RAG to securely manage and access resources across environments." author: cwatson-cat ms.author: cwatson ms.topic: how-to #Don't change ms.date: 10/29/2025 ms.subservice: edge-rag ms.custom: - build-2025 # Customer intent: As a developer, I want to configure API-key based authentication for Edge RAG, so that I can securely manage and access resources across local and cloud environments. --- # Configure "BYOM" endpoint authentication for Edge RAG Preview enabled by Azure Arc This article shows you how to configure API-key based authentication for any local or cloud-based LLM endpoints that need it. If you configured Edge RAG to use your own language model instead of an Edge RAG-provided model, complete the steps in this article. [!INCLUDE [preview-notice](includes/preview-notice.md)] ## Set up API Key for authentication After you install the Edge RAG extension and configure it to use your own language model, get an API key for the model. 1. In your Azure Local node, get the "bring your own model" (BYOM) secret that was created during the extension installation. ```powershell [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String( (.\kubectl.exe get secret byom-api-key -n arc-rag -o jsonpath="{.data.BYOM_API_KEY}") )) Output: byom-secret ``` 1. Update the secret value to LLM endpoint API key by deleting and recreating the secret. ```powershell kubectl delete secret byom-api-key -n arc-rag $apiKey = "<LLM endpoint API key>" kubectl create secret generic byom-api-key --from-literal=BYOM_API_KEY=$apiKey -n arc-rag ``` 1. Verify if the secret is set to desired API key ```powershell [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String( ( kubectl get secret byom-api-key -n arc-rag -o jsonpath="{.data.BYOM_API_KEY}" ) )) Output: <Endpoint api key> ``` 1. Delete the inferencing flow pod to apply the secret change. ```powershell kubectl.exe delete pods -n arc-rag -l app=inferencingflow ``` ## Related content - [Deploy the Edge RAG extension](deploy.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: