An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi there Adriano Neto
Thanks for using QandA platform
If it’s working locally but not in Kubernetes, the issue is almost always with how the API key or endpoint is passed at runtime. Even if env | grep shows the key, double-check for hidden characters (like trailing spaces or newline) — they often sneak in when mounting secrets. Also make sure the endpoint URL ends with /openai/deployments/... if required, and matches the region exactly. Another common cause is network egress — your cluster might be behind a firewall or private network blocking calls to the Azure endpoint. You can exec into the pod and try a curl -I $AZURE_OPENAI_ENDPOINT to confirm connectivity.
Finally, check if the pod’s identity or outbound IP is restricted in Azure; if the key is valid but the request originates from an unauthorized network, you’ll still see a 401.
If this helps kindly accept the answer thanks much.