Hi @OSAMA H.ABDELRAZEK ,
Welcome to our forum!
When did you encounter this error?
Based on my research, i found a similar case which mentioned the same error, please refer to it: AADSTS900561: This endpoint only accepts POST requests. Received a GET request. If it is your case, it's suggested that you could try the solution as Marilee Turscak-MSFT provided.
If not, please provide more information about your case for our better research.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.