The Media Services ARM API can be accessed using a Managed Identity. For this to work, the Managed Identity must be granted access to the Media Services account.
First you would need to get a token. The process to get tokens depends on the Managed Identity provider, here are some examples:
When requesting tokens to call the Media Services ARM API, the resource
should be set to https://management.azure.com/
.
Once you have a token, you can call the ARM API by specifying the token in the Authorization
header, for example:
https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myrg/providers/Microsoft.Media/mediaservices/mymedia/assets?api-version=2021-11-01
Authorization: Bearer <token-goes-here>