@Pavani Muddana , Thank you for reaching out. I tried accessing the v2/token endpoint of the AAD to fetch an access-token and was able to successfully fetch the token from AAD.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.