Subnet snet-pe (10.1.1.0/24) in virtual network myVNet contains:
- virtual machine vm-jump
- private endpoint pe-foundry for a Microsoft Foundry resource
- private endpoint pe-search for an Azure AI Search service
Network security group nsg-pe is associated with snet-pe, and nsg-pe already filters traffic to vm-jump. Private endpoint network policies on snet-pe are currently Disabled.
An engineer runs the commands in the exhibit because the security team asked for NSG filtering of pe-foundry.
$net = @{
Name = 'myVNet'
ResourceGroupName = 'myResourceGroup'
}
$vnet = Get-AzVirtualNetwork @net
$sub = @{
Name = 'snet-pe'
VirtualNetwork = $vnet
AddressPrefix = '10.1.1.0/24'
NetworkSecurityGroupId = ($vnet.Subnets | Where-Object { $_.Name -eq 'snet-pe' }).NetworkSecurityGroup.Id
PrivateEndpointNetworkPoliciesFlag = 'NetworkSecurityGroupEnabled'
}
Set-AzVirtualNetworkSubnetConfig @sub
$vnet | Set-AzVirtualNetwork
Which statement describes how nsg-pe filters traffic after the commands complete?
Choose one answer.
- nsg-pe filters neither endpoint until route table support is also enabled
- nsg-pe filters pe-foundry; pe-search and vm-jump are unchanged
- nsg-pe filters pe-foundry, pe-search and, for the first time, vm-jump
- nsg-pe filters pe-foundry and pe-search; vm-jump is unchanged