Hello , Welcome to MS Q&A
Based on the latest documentation and community discussions, here's a breakdown of the situation you're facing with Azure Elastic Job Agent and Private Endpoint connectivity across tenants:
The error you're seeing maybe Elastic Job Agent does not fully support Private Endpoint connections across tenants, even if the VNets are peered and DNS resolution is correctly configured
It can help here
- Azure Batch and WebApps in Tenant 1 can connect to the SQL Database in Tenant 2 via Private Endpoint because they support cross-tenant VNet peering and DNS resolution.
- Elastic Job Agent, however, still defaults to public IP routing unless explicitly configured with a service-managed private link, which is only supported within the same tenant and subscription 3.
Workarounds & Recommendations
Move the Elastic Job Agent to Tenant 2:
- Deploy the Job Agent in the same tenant and VNet as the SQL Database.
- This avoids cross-tenant restrictions and allows full use of Private Endpoint routing.
- These services can be configured to run jobs and support Private Endpoint access across tenants more flexibly. **Enable “Allow Azure Services” Temporarily**: - While not ideal, enabling this setting allows Elastic Jobs to connect via public IP. You can restrict access using firewall rules or service tags.
- Raise a Microsoft Support Ticket:
- Since this is a nuanced cross-tenant networking issue, Microsoft support can confirm whether any preview features or exceptions apply to your scenario.ased on the latest documentation and community discussions, here's a breakdown of the situation you're facing with Azure Elastic Job Agent and Private Endpoint connectivity across tenants: Pls check link for ref- https://techcommunity.microsoft.com/blog/azuresqlblog/azure-sql-database-elastic-jobs-preview-refresh/3965759 Pls let me know if any ques Thanks Deepanshu