Forum Discussion

parik's avatar
parik
Frequent Visitor
7 years ago

PBIX file in CI/CD pipeline

Hi guys,

I'm trying to put our PBIX files into a CI/CD pipeline.

I found out how to upload PBIX files to the serivce via PowerShell, works fine. I found out how to change server name and database name (through API, either via parameters or directly).

What I struggle with is how to change credentials for the deployed dataset.

Any ideas?

Thanks!

7 Replies

  • parik's avatar
    parik
    Frequent Visitor

    Hi, any ideas how to approach this are really appreciated. I hope we are not the only one who has a test environment and who wants to automate the deployment process :) 
    Do you all really manually change the username/password when you are deploying to PROD?
    I hope there must be some way to automatize that.

    Thanks for any comments!

      • parik's avatar
        parik
        Frequent Visitor

        Hi Tim,

        thanks a lot for the answer! We are on Azure DevOps. We tried the plugin, but it seems it can only change server and database names. That is also possible to do via API.

        What I'm after is changing user name and password - if the Power BI Actions extension can do that, then please correct me - to me it seems it does not provide option for changing credentials of a deployed dataset.

        Invoke-PowerBIRestMethod also does not seem to be useful, because AFAIK there is no API for changing user names/passwords.

        Petr

    • Jayendran's avatar
      Jayendran
      Icon for Solution Sage rankSolution Sage

      Hi parik ,

       

      Do you have any update ? If my replay helps please accept it as answer/giving kudos which will help other community members

  • Hi,

         Can you please provide me deployment powershell script to deploy pbix files through azure devops.I tried but it is not recognizing the New-PowerBIReport cmdlet.While deploying i was getting the error New-PowerBIReport : Operation returned an invalid status code 'NotFound'.

     

    Thanks