Cognitive Services inside virtual network service tag configuration

Gayatri Krishnan 66 Reputation points
2022-07-15T04:19:41.237+00:00

Hi,

I am provisioning single services of Cognitive Service inside a virtual network. I have setup the services as mentioned in the documentation.
https://learn.microsoft.com/en-us/azure/cognitive-services/cognitive-services-virtual-networks?tabs=portal

I saw a note in the documentation about service tags to be applied and I am wondering how does that work?

220959-image.png

I didn't configure any rule for CognitiveServiceManagement tag in my associated NSG and yet I was able to successfully test Rest endpoints using postman from a VM in virtual network. Only default rules are allowed. Also note the outbound network access and public network access for the service is disabled.

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

Accepted answer
  1. romungi-MSFT 48,916 Reputation points Microsoft Employee Moderator
    2022-07-20T08:37:47.963+00:00

    As per the default security group I see outbound internet is allowed.
    222550-image.png

    Since the rules are stateful i.e if you specify an outbound security rule to any address over port 443, for example, it's not necessary to specify an inbound security rule for the response to the outbound traffic. I believe this behavior is allowing you to initiate requests from a VM in your network to your endpoint irrespective of a CognitiveServiceManagement tag added to allow inbound requests.

    The security rules section from this page explains this behavior and if you try to change the Access to Deny for rule 65001 in your outbound rules your request should fail.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.