I'm trying to access the quota list/read api from a python runbook in an automation account - but how do I authenticate it?
I'm reading. I need to pass a bearer auth token in the header but the tutorials I find are all done via Postman which doesn't make sense since this is an internally ran script.
API: https://learn.microsoft.com/en-us/rest/api/reserved-vm-instances/quota/list?tabs=HTTP
I found this in the documentation, but it looks like this is for an externally ran python script? https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-python-3
Any help here would be much appreciated.