Learn how to create and use service principals with Azure CLI. use with applications, hosted services, and automated tools to access Azure resources. Contact your Azure Active Directory admin to create a service principal. . az login --service-principal --username APP_ID --tenant TENANT_ID --password /path/to/cert..