Following will create service principal in Azure outputting auth creds in JSON format compatible with GitHub Actions. https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Cwindows
az ad sp create-for-rbac --name "myApp" --json-auth