Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Unable to deploy report to Power BI Report Server

I am trying to deploy the report file (PBIX) file on to Power BI report server through DevOps on Linux agent. I am getting the responce code 401 (Unauthorized), while it is failing to create a session. Can anyone suggest what could be the issue.

3 Replies

  • The 401 error means you have not authenticated correctly to the report server. PBIRS usually uses windows auth, I'm not sure how you would do this from a linux agent.

    • Anonymous's avatar
      Anonymous
      Not applicable

      $password = ConvertTo-SecureString -String "$(DeployerPassword)" -AsPlainText -Force

       

      $Cred = New-Object System.Management.Automation.PSCredential ("$(DeployerUsername)", $password)

       

      $session = New-RsRestSession -ReportPortalUri $(ReportServerURI) -Credential $Cred

       

      We can use the above solution to authenticate with the PBIRS through Linux Agent server

  • Anonymous's avatar
    Anonymous
    Not applicable

    Now I am unable to publish Larger file (800 MB )file.. I had verified the MaxFileSize on PBIRS, it is 2000.

    . Getting below logs

     

    .pbix is large. Properties Overwrite, Description, and Hidden are being ignored during upload
    Uploading .pbix to xxxxx via endpoint for large files
    Write-RsRestCatalogItem -WebSession $session -ReportPortalUri $Re …
    2023-06-01T09:49:15.0898493Z      |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2023-06-01T09:49:15.0899494Z      | Failed to create catalog item: An error occurred while sending therequest