You have an Azure virtual network named `VNet1` that contains two subnets: `Subnet-A` () and `Subnet-B` ().
You deploy three virtual machines with network interfaces (NICs):
* `VM1` is in `Subnet-A` with IP address
* `VM2` is in `Subnet-B` with IP address
* `VM3` is in `Subnet-B` with IP address
You configure two Application Security Groups (ASGs):
* `ASG-App`: Contains the NIC of `VM1` and the NIC of `VM2`
* `ASG-Data`: Contains the NIC of `VM3`
You associate Network Security Groups (NSGs) as follows:
* `NSG-SubnetB` is associated with `Subnet-B`
* `NSG-NIC-VM3` is associated with the NIC of `VM3`
`NSG-SubnetB` contains the following inbound security rules:
* Priority: , Source: `ASG-App`, Destination: `ASG-Data`, Destination Port: , Protocol: TCP, Action: Allow
* Priority: , Source: , Destination: Any, Destination Port: Any, Protocol: Any, Action: Deny
`NSG-NIC-VM3` contains the following inbound security rules:
* Priority: , Source: , Destination: Any, Destination Port: , Protocol: TCP, Action: Deny
* Priority: , Source: VirtualNetwork, Destination: Any, Destination Port: , Protocol: TCP, Action: Allow
All other NSGs use default configurations.
What is the outcome when `VM1` and `VM2` attempt to establish a TCP connection to `VM3` on port ?
- ABoth connections are allowed.
- BBoth connections are denied.
- The connection from VM1 is denied, and the connection from VM2 is allowed.Cevap
- DThe connection from VM1 is allowed, and the connection from VM2 is denied.