Hello, your backend application or API will need to be able to reach AAD in order to validate the access token. If you use a NSG you can add an outbound rule with Destination Service Tag and Destination Service Tag Azure Active Directory.
Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.