Open erikthedog opened 2 years ago
Apparently, MS in their infinity wisdom, made it impossible to deploy b2c tenants from a service account as the tenant needs a "real" user to own the tenant. This fails in bicep, the cli, and ARM with the same error, so it's not a Pulumi issue.
I have a dotnet project containing an Azure AD B2C Tenant.
I can successfully deploy the stack with
pulumi up
from my machine logged in to Azure as my personal user.When trying to deploy the stack from Azure Devops using the
Pulumi@1
task it fails withUnauthenticated
error code:The service principal used as the
azureSubscription
is assigned theowner
role in the subscription I am deploying to. I am able to deploy a resource group using the same stack and service principal.