This site's Azure guide explains in five steps how to create the service principal in the portal and paste it into Control Cloud. Search Console shows searches arriving with no page that answers them: "azure service principal", "service principal azure", "azure access control". This note answers them with the CLI: what a service principal is and how it differs from an app registration and a managed identity, how to create one with the Reader role in a single command, which role adds cost reading, when the secret expires, and how to check that it really cannot write. Commands and role names come from Microsoft Learn; the source list is at the end.
App registration, service principal and managed identity
App registration (the application object): the global definition of the application, living in the tenant where it was registered. That is where the client ID and the credentials are.
Service principal: according to Microsoft Learn, the local representation of that application object in a tenant.…