A cloud-based identity and access management service for securing user authentication and resource access
The client application
During the CI/CD pipeline execution in GitHub Actions, which deploys our application to Azure production, we encounter the following error when using azure/login@v2:
Error Code: AADSTS7000229
Error Message: “The client application is missing service principal in the tenant .”
Impact:
The login step fails, preventing the GitHub Actions CI/CD pipeline from deploying the application to production.
Suspected Causes:
Incorrect Tenant ID: The tenant-id in the GitHub Actions workflow does not match the tenant where the App Registration (Service Principal) exists.
Missing or Deleted Service Principal: The App Registration with the specified client-id may not exist, may have been deleted, or may exist in a different tenant.
Invalid or Expired Credentials: The client-secret may be missing, expired, or incorrectly configured in GitHub secrets.
Authentication Type Mismatch: The workflow may be configured for secret-based login while the App Registration expects OIDC, or vice versa.
Multi-tenant Confusion: The App Registration exists in another tenant (single-tenant apps cannot be used across tenants).