Interview Prep/Azure/Network Connectivity Errors

Key Vault returns `Client address is not authorized and caller is not a trusted service.` (ForbiddenByFirewall).

BeginnerTroubleshootingNetwork Connectivity Errors
Answer

Likely causes → Vault firewall is on (default action Deny or public access disabled), and the caller comes from a public IP not in the allow list or not through the Private Endpoint.

Diagnose → The error includes the client IP; az keyvault show -n kv-shop --query properties.networkAcls

Fix →

  1. Access via the Private Endpoint (fix DNS so the client uses it)
  2. Or add the caller's IP/VNet rule: az keyvault network-rule add -n kv-shop --ip-address <ip>/32

Prevent → Private access by design; avoid IP allow lists for CI (hosted runner IPs change).

Azure All Azure questions Roadmap: Azure core services

More on Network Connectivity Errors