A cloud-based identity and access management service for securing user authentication and resource access
Hello U R,
Yes. Conditional Access for Workload Identities is evaluated at token issuance time in Microsoft Entra ID, not based on the client used.
So if Azure SDKs or IaC tools like Terraform authenticate using a service principal via environment variables, the sign‑in is treated as a service principal (workload identity) sign‑in, and any Conditional Access policies scoped to Workload identities (for example, IP/location‑based blocking or service principal risk) will be applied.
The authentication method (CLI, SDK, Terraform, env vars, etc.) does not bypass Conditional Access—as long as the policy is directly assigned to the service principal and you have Entra Workload ID Premium, enforcement occurs.
Note: Managed identities are excluded from Conditional Access for workload identities; this applies only to service principals.
For your reference: https://learn.microsoft.com/en-us/entra/identity/conditional-access/workload-identity