microsoft / powerbi-azure-pipelines-extensions

MIT License
36 stars 14 forks source link

Trying to connect power BI workspace from azure devops deployment pipelines #10

Closed ManjuGitHub8201 closed 1 year ago

ManjuGitHub8201 commented 2 years ago

Hi Team,

we are using Power BI automation tools extension to connect to power BI workspace.

we are trying to connect power BI workspace from azure devops using service prinicipal authentication. we were getting below error when we try to hit the power BI workspace. Could you please take a look at below issue. Error Details from Logs: 5597144Z ##[error]Response status code does not indicate success: 400 (Bad Request).

Full Log details pipeline: 2022-03-03T15:15:39.8615538Z ##[section]Starting: Deploy content to the Test stage 2022-03-03T15:15:40.0076320Z ============================================================================== 2022-03-03T15:15:40.0076968Z Task : Deploy content in a deployment pipeline 2022-03-03T15:15:40.0077432Z Description : Deploy content in a Power BI deployment pipeline 2022-03-03T15:15:40.0077702Z Version : 1.0.10 2022-03-03T15:15:40.0078023Z Author : Microsoft 2022-03-03T15:15:40.0078408Z Help : 2022-03-03T15:15:40.0078678Z ============================================================================== 2022-03-03T15:15:43.3671665Z Importing module MicrosoftPowerBIMgmt.Profile 2022-03-03T15:15:43.4064949Z Connecting to Power BI with ServicePrincipal 2022-03-03T15:15:44.4822569Z Activity ID: ffe071e6-8200-4bc6-bb22-5ecb9e87f8b7 2022-03-03T15:15:44.4830107Z Getting pipeline 2022-03-03T15:15:44.9275903Z Sending request to start deployment - pipelines/cc77e870-06e5-4fc6-922a-0ed7daff549f/DeployAll 2022-03-03T15:15:44.9295659Z Request Body- { 2022-03-03T15:15:44.9305228Z "isBackwardDeployment": false, 2022-03-03T15:15:44.9307325Z "newWorkspace": { 2022-03-03T15:15:44.9311351Z "capacityId": "", 2022-03-03T15:15:44.9312902Z "name": "Test" 2022-03-03T15:15:44.9314305Z }, 2022-03-03T15:15:44.9315545Z "updateAppSettings": { 2022-03-03T15:15:44.9317059Z "updateAppInTargetWorkspace": true 2022-03-03T15:15:44.9318366Z }, 2022-03-03T15:15:44.9319687Z "sourceStageOrder": 0, 2022-03-03T15:15:44.9320751Z "options": { 2022-03-03T15:15:44.9321872Z "allowTakeOver": false, 2022-03-03T15:15:44.9322862Z "allowOverwriteArtifact": true, 2022-03-03T15:15:44.9323780Z "allowPurgeData": false, 2022-03-03T15:15:44.9324820Z "allowSkipTilesWithMissingPrerequisites": false, 2022-03-03T15:15:44.9328835Z "allowCreateArtifact": true, 2022-03-03T15:15:44.9539735Z "allowOverwriteTargetArtifactLabel": false 2022-03-03T15:15:44.9541321Z } 2022-03-03T15:15:44.9541692Z } 2022-03-03T15:15:48.5597144Z ##[error]Response status code does not indicate success: 400 (Bad Request). 2022-03-03T15:15:48.5818276Z ##[section]Finishing: Deploy content to the Test stage

Thanks, Manjunath

ZakharBorodin commented 2 years ago

It looks from logs like you are trying to deploy with updateAppInTargetWorkspace set to true while there is no App in the target workspace.

updateAppInTargetWorkspace should only be set to true if there is an App in the target workspace which will be updated after the deployment. Please, verify.

ManjuGitHub8201 commented 2 years ago

Hi Team,

As suggested below I have set updateAppInTargetWorkspace to false and then I have ran the pipeline still I am facing same issue. screenshot: @.***

Error Screenshot: @.***

Thanks, Manjunath

From: Zakhar Borodin @.> Sent: 07 March 2022 18:49 To: microsoft/powerbi-azure-pipelines-extensions @.> Cc: G, Manjunatha @.>; Author @.> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

It looks from logs like you are trying to deploy with updateAppInTargetWorkspace set to true while there is no App in the target workspace.

updateAppInTargetWorkspace should only be set to true if there is an App in the target workspace which will be updated after the deployment. Please, verify.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1060678513__;Iw!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3Vkadf4s$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ETZIX6FWYXJ5QJKUDVTU6X65BANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3wQlvS8Y$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3feP2C-s$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3WnsWVoM$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

ManjuGitHub8201 commented 2 years ago

Hi Team,

Please find the logs from the pipeline. Logs: 2022-03-08T07:09:29.1953881Z ##[section]Starting: Deploy content to the Test stage 2022-03-08T07:09:29.2971274Z ============================================================================== 2022-03-08T07:09:29.2972727Z Task : Deploy content in a deployment pipeline 2022-03-08T07:09:29.2973493Z Description : Deploy content in a Power BI deployment pipeline 2022-03-08T07:09:29.2973824Z Version : 1.0.10 2022-03-08T07:09:29.2974353Z Author : Microsoft 2022-03-08T07:09:29.2975018Z Help : 2022-03-08T07:09:29.2975931Z ============================================================================== 2022-03-08T07:09:30.4553510Z Importing module MicrosoftPowerBIMgmt.Profile 2022-03-08T07:09:30.5175445Z Connecting to Power BI with ServicePrincipal 2022-03-08T07:09:31.7449213Z Activity ID: b5e7775e-467e-414f-a59f-9082f2da3863 2022-03-08T07:09:31.7453681Z Getting pipeline 2022-03-08T07:09:32.3822162Z ##[error]Response status code does not indicate success: 401 (Unauthorized). 2022-03-08T07:09:32.4212243Z ##[section]Finishing: Deploy content to the Test stage

Thanks, Manjunath

From: G, Manjunatha Sent: 08 March 2022 12:58 To: microsoft/powerbi-azure-pipelines-extensions @.>; microsoft/powerbi-azure-pipelines-extensions @.> Cc: Author @.***> Subject: RE: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

Hi Team,

As suggested below I have set updateAppInTargetWorkspace to false and then I have ran the pipeline still I am facing same issue. screenshot: @.***

Error Screenshot: @.***

Thanks, Manjunath

From: Zakhar Borodin @.**@.>> Sent: 07 March 2022 18:49 To: microsoft/powerbi-azure-pipelines-extensions @.**@.>> Cc: G, Manjunatha @.**@.>>; Author @.**@.>> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

It looks from logs like you are trying to deploy with updateAppInTargetWorkspace set to true while there is no App in the target workspace.

updateAppInTargetWorkspace should only be set to true if there is an App in the target workspace which will be updated after the deployment. Please, verify.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1060678513__;Iw!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3Vkadf4s$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ETZIX6FWYXJ5QJKUDVTU6X65BANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3wQlvS8Y$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3feP2C-s$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!JNsAGB2AkC5XGSTVYpbmaHGXxlvcT_kCLj2fP20sWlOg0oiaLTPtjpZHiCL3WnsWVoM$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

Shaktty commented 2 years ago

Hi,

I have the exact same issue with this method.

ManjuGitHub8201 commented 2 years ago

What fix you made to this issue? Please let us know that would greatly appreciate.

Thanks, Manjunath

From: Shaktty @.> Sent: 08 March 2022 19:02 To: microsoft/powerbi-azure-pipelines-extensions @.> Cc: G, Manjunatha @.>; Author @.> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

Hi,

I have the exact same issue with this method.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1061780561__;Iw!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vw9qD6yc$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ET2MFX6FX4RU43O4UDTU65JE3ANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vthDWBGg$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7veu7IXIM$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vItlDc8E$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

Shaktty commented 2 years ago

still impacted.

ManjuGitHub8201 commented 2 years ago

Oh okay.. still issue not fixed then?

From: Shaktty @.> Sent: 08 March 2022 19:31 To: microsoft/powerbi-azure-pipelines-extensions @.> Cc: G, Manjunatha @.>; Author @.> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

still impacted.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1061808883__;Iw!!AKgNyAfk550h-spHnEo!P05RmcDQ_eegaX_-4P4TpgoO6ch7hjHudZBnip1wB9Us9YF5tvxwNY536t4xQsamb8k$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ETZGDHALVY22KXGNMLLU65MQHANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!P05RmcDQ_eegaX_-4P4TpgoO6ch7hjHudZBnip1wB9Us9YF5tvxwNY536t4x3APtZVc$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!P05RmcDQ_eegaX_-4P4TpgoO6ch7hjHudZBnip1wB9Us9YF5tvxwNY536t4x422YN24$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!P05RmcDQ_eegaX_-4P4TpgoO6ch7hjHudZBnip1wB9Us9YF5tvxwNY536t4xxY684Lw$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

ZakharBorodin commented 2 years ago

Consider opening a support ticket https://powerbi.microsoft.com/en-us/support/

ManjuGitHub8201 commented 2 years ago

Hi Team,

Any update on the issue which I posted?

Thanks, Manjunath

From: Shaktty @.> Sent: 08 March 2022 19:02 To: microsoft/powerbi-azure-pipelines-extensions @.> Cc: G, Manjunatha @.>; Author @.> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

Hi,

I have the exact same issue with this method.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1061780561__;Iw!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vw9qD6yc$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ET2MFX6FX4RU43O4UDTU65JE3ANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vthDWBGg$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7veu7IXIM$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vItlDc8E$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

ManjuGitHub8201 commented 2 years ago

Hi Team,

Any update on below issue which I posted.

Thanks, Manjunath

From: G, Manjunatha Sent: 11 March 2022 15:53 To: microsoft/powerbi-azure-pipelines-extensions @.>; microsoft/powerbi-azure-pipelines-extensions @.> Cc: Author @.***> Subject: RE: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

Hi Team,

Any update on the issue which I posted?

Thanks, Manjunath

From: Shaktty @.**@.>> Sent: 08 March 2022 19:02 To: microsoft/powerbi-azure-pipelines-extensions @.**@.>> Cc: G, Manjunatha @.**@.>>; Author @.**@.>> Subject: Re: [microsoft/powerbi-azure-pipelines-extensions] Trying to connect power BI workspace from azure devops deployment pipelines (Issue #10)

Hi,

I have the exact same issue with this method.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/powerbi-azure-pipelines-extensions/issues/10*issuecomment-1061780561__;Iw!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vw9qD6yc$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATV5ET2MFX6FX4RU43O4UDTU65JE3ANCNFSM5P44P2DA__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vthDWBGg$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7veu7IXIM$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!AKgNyAfk550h-spHnEo!I7zk32nCJpMsOZKGPBK-MiRcl47vf10DU7y1WCewdH0_FoVU6nbGwV3RDK7vItlDc8E$. You are receiving this because you authored the thread.Message ID: @.**@.>>

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

Shaktty commented 2 years ago

Consider opening a support ticket https://powerbi.microsoft.com/en-us/support/

I did, and support closed the ticket as this is in preview only.

This github ticket is still unassigned.

Is anyone looking into this issue at all?

Harold-Anderson commented 2 years ago

For me it works in a classic pipeline (now called a release pipeline), and not in the new Yaml pipelines (previously called Build pipelines, now called Pipelines)

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

@Harold-Anderson there should be no difference between the two, please try with the new version and open a new issue if issue still happen