Please correct me If I am wrong, but my initial thought was using an Azure function to upload a video to YouTube using Youtube API (using this code: https://developers.google.com/youtube/v3/docs/videos/insert) , but I realized that this approach isn't feasible. The YouTube Data API has two methods to access data, ApiKey and OAuth. The ApiKey method would be what wewant for server-to-server communication, but it's only able to access public information (list public videos, playlists, etc). We cannot upload videos to an account using the ApiKey method. The OAuth method is what allows us to upload videos, but this is an "interactive" OAuth flow, meaning it requires an interactive user to provide credentials in a device/browser. An Azure Function is not an interactive process. The solution to this would be to use a Service Account, which is for server-to-server OAuth. But YouTube does not support service account.
I am wondering what are other approaches that I could take? Is there a simple way outside of Azure to use the Youtube API to upload a video from Azure blob storage public URL? Thank you.