An Azure network security service that is used to protect Azure Virtual Network resources.
Hello @ Abdul Rahim
Welcome to Microsoft Q&A Platform.
As discussed offline, the issue you encountered was due to multiple traffic-filtering rules.
At the first level, Azure Firewall is applied at the subnet level and is configured to block all traffic by default, allowing only the traffic explicitly permitted by the firewall policy. In addition to this, there is an NSG applied at the VM NIC level that also blocks all outbound internet traffic.
Because of this layered configuration, traffic from the VM was being blocked even for Microsoft endpoints such as Office 365, Microsoft Entra ID, and Azure Front Door, despite these being explicitly allowed in the Firewall policy.
To resolve the issue, please remove the unnecessary outbound blocking rules from the NSG attached to the VM NIC. The Azure Firewall already controls traffic at the subnet level, so maintaining restrictive outbound rules at the NIC level is not required and can cause conflicts.
Once the redundant NSG rules are removed, traffic should flow as expected.
Please
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.