microsoft / powerbi-azure-pipelines-extensions

MIT License
36 stars 14 forks source link

Deploy content to the Test stage : Error 400 #14

Closed Cha74 closed 1 year ago

Cha74 commented 2 years ago

Hello,

When I try to deploy, I get a 400 error every time.

I have tried different names for the new workspace though.

But nothing works

image

kohithms commented 2 years ago

@Cha74 check whether the App registration has valid permissions shared in public doc.

Cha74 commented 2 years ago

@kohithms

The weird thing is that sometimes it works and sometimes it doesn't

But I'll check it out thanks !

jontreynes commented 2 years ago

@Cha74 and @kohithms - I'm receiving the same error. As per the public doc it only states Pipeline.Deploy and The user must at least be a member on both source and target deployment workspaces

My app registration has these permissions already. I've also made sure to Allow service principals to use Power BI APIs as it states here https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-3---enable-the-power-bi-service-admin-settings. I've included my app registration as an admin on the pipeline as well

I'm not sure what else is missing.

jontreynes commented 2 years ago

Update: My issue was resolved when setting updateAppSettings to false. In my case, it was suppose to be false because I had no powerbi app

MahirDiab commented 1 year ago

Hi, sorry for the delay - 400 bad request, is a general error and doesn't indicate the exact issue. with the new version (1.1.0) just released you should be able to see the error code which should explain the issue please re-try this and provide the updated log if additional help is needed

CHAUHC01 commented 1 year ago

I think this should be an active issue. I'm on the right version, got the correct Azure AD app permissions/Service Principal setup, Group, Enabled Service Principals in Power BI Service. Work fine for creating pipeline, assigning a workspace to any stage, deleting pipeline, assigning users to pipeline, assigning users to a workspace. FAILS to deploy all OR selective content in a power BI pipeline to the next stage as it either returns a Status 400 Bad request OR it cannot find the artifacts to deploy.