How Data Snipper from my local is getting connected to Cognitive services which is in Azure though all the outbound port rules are restricted to true using Terraform scrips

Akshat Sehgal 0 Reputation points
2024-11-19T16:22:02.94+00:00

I Installed Data snipper locally and try to connect to Cognitive services on Azure Which I created using Private end point and outbound port rules are restricted but still I am able to connect and previously it was not working

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,938 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 26,971 Reputation points
    2024-11-19T22:51:53.6533333+00:00

    Possible Causes and Resolutions

    Private Endpoint and Azure Private Link

    When you create a private endpoint for Azure Cognitive Services, the traffic to the service remains within the Azure network.

    If your local machine is accessing Azure through a VPN or ExpressRoute, the private endpoint can enable access as long as the network configuration aligns.

    DNS Configuration

    • The DNS resolution for the private endpoint is essential. If your local system is resolving the Cognitive Services endpoint to its private IP (assigned by the private endpoint), traffic will bypass public routes and adhere to the private network.
    • Previously, if this was not configured, your connection would fail. Check your DNS setup to confirm.

    Firewall Rules and Exceptions

    • Outbound port restrictions might not apply to traffic routed through a VPN or a private endpoint.

    Steps to verify :

    • Use the Azure portal or Azure CLI to review the effective network security rules for the Cognitive Services resource and the private endpoint subnet.
    • Run a DNS query (e.g., nslookup <Cognitive Services endpoint>). Ensure it resolves to the private endpoint IP.
    • Use tools like Wireshark or Fiddler to capture traffic from your local system and verify the destination IP and ports.
    • Inspect the Terraform configuration for:
      • Outbound rule specifics.
      • Private endpoint-related settings.
      • Any overlooked exceptions.

    Links to help you :

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.