#Error: TF401444 when trying to push a template onto Azure Devops

1 messages · Page 1 of 1 (latest)

worn owl
#

Hi I'm setting up Azure integration on Backstage for our org, and we're using a service principal for the azure integration in app-config.yaml. When I try to push a software template to Azure Devops, it fails at the Publish step with the following error:

Error: TF401444: Please sign-in at least once as <OUR_TENANT_ID>in a web browser to enable access to the service.

Although publishing works with when using a PAT, but we'd like to use the service principal

pliant estuary
#

Did you try what it suggests? I.e. sign in at least once in a web browser.

worn owl
#

this is a service principal though, not a user. i don't think you can sign in to an application through the UI

#

i tried logging in through the azure cli using the SP credentials but still no luck

pliant estuary
#

So you cannot sign in with the service principal using the azure cli either?

#

Does it give the same error?

worn owl
#

im able to sign in using the CLI

#

but that doesn't fix the error

pliant estuary
#

Ok hrrmm.

spice arrow
#

What version of Backstage are you on?

worn owl
spice arrow
#

Ah, ok, can you log an issue for this then? I don't have a solution and that would allow us to get some of the other Azure DevOps users involved 👍

narrow stratus
#

Is the managed identity listed as a member of your org at https://dev.azure.com/ORG/_settings/users ? If not you may need to add them. (If you do add them.

If adding the user doesn't seem to work, make sure you have spare licences, and also make sure you did not tick Send email invites (to Users only) when you added the user.

If your user does show up in that list but you still can't log in, you're likely lookign at either some form of consent being needed, or some kind of conditional access policies applied by your tenant administrator.

worn owl
narrow stratus
#

What azure service are you running on? AKS, Container Apps, App Service etc.