You want to connect from your Azure virtual machine (VM) to Azure CosmosDB. Your virtual network is secured by network security group (NSG) that filters outbound traffic. What do you need to configure to allow traffic from your VM to CosmosDB?
Experience Level: Junior
Tags: Azure CloudAzure Cosmos DBAzure Network Security GroupsAzure Virtual Machines
Answer
- Add an outbound rule to the network security group (NSG)
- As a target use service tag - CosmosDB.
Related Azure Cloud job interview questions
You have a network security group configured on your VNET. It is blocking target service tag Storage. You create a private endpoint to Azure Storage Account. Can VNET resources access the storage account?
Azure CloudAzure Network Security GroupsAzure Private Link Service JuniorYou are configuring your Azure virtual network gateway to authenticate with Azure AD. What protocol and what VPN client do you need?
Azure CloudAzure virtual network gateway JuniorHow many application security groups (ASG) do you need to assign ASG to virtual machines in two different virtual networks?
Azure CloudAzure Virtual MachinesAzure Virtual Networks JuniorWhat DNS record do you need to configure to make your website use Traffic Manager profile?
Azure CloudAzure Traffic Manager JuniorUsing Azure Traffic Manager, you plan to route users to the endpoint by user's geographic location. However, for Europe you plan 5% of your traffic to be sent to specific endpoint. What configuration will you use?
Azure CloudAzure Traffic Manager Junior