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

Announcements

No record found.

News and Announcements icon
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 30

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

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    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.

  • it.dev Profile Picture
    30 on at

    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,429 on at

    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
    30 on at

    Hi Gunjan,

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

    2. yes i tried it as administrator

    Thanks,

    Masha

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    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)

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,429 on at

    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.

  • it.dev Profile Picture
    30 on at

    Hi All,

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

    Regards,

    Masha

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans