For creation of Service principal you need to be AD administrator
For complete step by step tutorial on how to create Azure service principal using three different ways please follow Youtube tutorial
[Three Ways To Create Service Principal To login Azure | AZ-CLI | Part-1][1]
[1]: https://www.youtube.com/watch?v=gNHnGXik4AY
You need to provide RBAC roles to the service principal created to login
For complete step by step tutorial on how to create Azure service principal using three different ways please follow Youtube tutorial
[Three Ways To Create Service Principal To login Azure | AZ-CLI | Part-1][1]
[1]: https://www.youtube.com/watch?v=gNHnGXik4AY