-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on creating new SPVisioServiceApplication: Command not found #1392
Comments
The next run, it ran fine. I've had this happen before when starting out fresh. Might this be an issue with the visio resource creation starting before the snapin is loaded? |
This issue has been reported before, #372 and #790. Unfortunately we were unable to solve the issue in those cases because we were unable to reproduce and the issue creator didn't respond anymore. This issue has something to do with timing: The code is loading the snap-in, but still can't find the cmdlet. Are you able to reproduce the issue when deploying a new farm? |
I was just about to do a fresh deploy overnight, I'll let you know tomorrow. |
Great! Just another quick question: Are you using SQLServerDsc in the same config by any chance? |
Oh and another request if you are able to reproduce, could you please do another fresh deployment and test the following: |
No SQLServerDsc in use. I am using these, though:
|
The reason why I was rolling out a fresh deploy, is that I refactored my config. Of course this results in a failed deploy because of dependencies, which I'm currently trying to fix first. I'll get back here once I have that fixed. |
And we're back. I've added the sleep to the code, and the issue persists. Once finished, the second time the dsc config is applied, the issue is fixed. I've just missed it this time. If you want me to test some more, just let me know, happy to help! |
Upped the sleep time to 120 seconds, which is clearly visible in the log, yet the commandlet is still unavailable:
|
same problem as A Remove- & Add-PsSnapin not solve this... The CmdLet New-SPVisioServiceApplication not available. In a new fresh startet powershell, the CmdLet New-SPVisioServiceApplication are available |
Problem description
When creating a new Visio Service application, I'm getting that the command new-SPVisioServiceApplication is not found.
This is a fresh rollout of SP2019 on Windows 2019 servers. I believe line 111 in the MSFT_SPVisioServiceApp resource generates the issue. Just to make sure, I checked if something was off with my Sharepoint snapin, but the New-SPVisioServiceApplication cmdlet is there.
Other webapplications are getting created succesfully.
DSC Operational log:
Verbose logs
DSC configuration
Suggested solution
Checking for the command in memory, if not, adding sharepoint pssnapin?
SharePoint version and build
Operating system the target node is running
PowerShell version and build the target node is running
SharePointDsc version
The text was updated successfully, but these errors were encountered: