Forum Discussion

Lephas's avatar
Lephas
Brass Contributor
Jan 31, 2024

Service Connection with user-assigned Managed Identity and Azure App Service failing to deploy

Hi guys

So i wanted to try to work with managed identities in Azure DevOps instead of the service principal on my service connection (Azure Resource Manager) to Azure.

However i am struggling to understand where i can specifiy the user assigned managed identity that i created on the Azure side for this purpose. 

Using this new service connection for my Deployment Pipeline i keep getting this message:

 

##[error]Error: Failed to fetch App Service 'my app Service' publishing credentials. Error: Could not fetch access token for Azure. Status code: 400, status message: Could not fetch access token for Managed Service Principal. Status code: 400, status message: Bad Request

 

 

Is this setup even supported? i gave this newly created managed identity owner permissions on the whole subscription....

 

Thanks for any help!

 

Resources