Azure Service tags REST API Authentication
Hi, I am trying to make a code that consumes via GET this Microsoft API but I get an AuthenticationFailed error when trying to use the GET by itself. However, when I access the documentation (https://learn.microsoft.com/en-us/rest/api/virtualnetwork/service-tags/) and click on the Try it button,
I am prompted to sign in and then I am given a token
If I hard code that token into my request header it successfully returns the info I need, so I know my HTTP request is not the problem, the problem is I do not know how to get that token from within my Python script. I have read so much documentation but all of it is oriented to APIs one has made within Azure, but I did not make this API since it is Microsoft's so I do not have the info I need to follow that documentation.
Anyone has any idea how to approach this? I am running out of options.