web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Cannot Deploy All SSRS Report D365 FO

(0) ShareShare
ReportReport
Posted on by 28

Hi All,

I faced the issue about deploying ssrs report via power shell, when i tried to run the script K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSsrs.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory"

it shows the error like this :

DeployAllReportsToSSRS.ps1 : The term 'DeployAllReportsToSSRS.ps1' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.

What am i miss here? could anybody give advice about it?

Thanks,

Masha

I have the same question (0)
  • it.dev Profile Picture
    28 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi All,

    Thanks for all your feedback before, the script ran well and everything is fine now.

    Regards,

    Masha

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi Masha,

    You can go to the folder "K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask". Go to File > Open Windows Powershell > Open Windows Powershell as administrator.

    pastedimage1607338807698v1.png

    Type this command - .\DeployAllReportsToSsrs.ps1 - PackageInstallLocation "K:\AosService\PackagesLocalDirectory" and check if that works for you.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Cannot Deploy All SSRS Report D365 FO

    The issue doesn't seem to be related to D365 but rather basic Windows / Powershell command launching. The error tells you that it doesn't find the PowerShell commandlet for some reason or another.

    Try to split the problem to smaller pieces, this way you can find where the issue is.

    1) Open PowerShell as administrator

    2) Type command "cd K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\" (without quotation marks)

    3) Type command ".\DeployAllReportsToSsrs.ps1 - PackageInstallLocation K:\AosService\PackagesLocalDirectory" (without quotation marks)

  • it.dev Profile Picture
    28 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi Gunjan,

    1. yes it's under K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask

    2. yes i tried it as administrator

    Thanks,

    Masha

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi Masha, In that case you don't need to replace the drive letter. Could you please verify the following? -

    1. Is the file "DeployAllReportsToSsrs.ps1" present under K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask?

    2. Did you try running powershell as administrator?

  • it.dev Profile Picture
    28 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi Gunjan,

    it's in the cloud hosted VM. the AosService folder is in Drive K what should i replacing the letter with?

    Thanks

    Masha

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Cannot Deploy All SSRS Report D365 FO

    Hi Masha,

    Is this a VM deployed on Azure or a locally hosted? Either way, please check which drive contains the AOSService folder and try replacing "K:" with the drive letter.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,239

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 767 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 672 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans