I need some help moving forward with PowerShellUniversal. I love the new setup but it is a lot of work to convert my old dashboards (please prove me wrong).
Challeng list:
I havning problem`s with loading functions. Before i loaded all my functions with . (Join-Path
$ScriptRoot “function.ps1”)
Page vs Dashboard. How should the this be done in the new version? Before i had one dashboard with xx pages. Should i still use that or is it one page on dashboard? I found it more usefull because you cannot edit joind pages in the admin consol.
Can some please make a universel convert (2.9 - 3.0)
How to set default Home page? I don`t want it to be the admin site.
I don`t like the new module setup i got a lot of custom/non supported modules that i need to groom before i can get this up and running.
I love universel dashboard and invested a loot of hour in it in 2019 and 2020. But with this new version it all come to a stop. I need to get this new setup to work so i can start to create and update all my cool dashboards. Thanks.
@MR-ITdude
i was using universal dashboard before and i thought migrating to PSU will be time consuming but in fact i was able to do it in couple of hours.
in regard to your challenge list below are some advices that might help you in your migration.
1- you can add your functions to the main dashboard file or to a custom component or create a powershell module for these functions that you can use with psu,its up to you which route you want to use to add these functions.
2-PSU work with one files or multi files like before so the pages can be separate and can be in one file.
3-there is no way to do so since both versions are different in cmdlets, v3 for example no longer uses grids and if you have grids before you need to re code your script to use tables also ud-cards is a little bit different in v3 than in v2, so its all about what components you have used in v2 and if its still the same or need rewrite in v3.
4-the admin site is only accessible when you type /admin , if you create a dashboard and you dont want to give it a name like /dashboard just use “/” this way when you type the fqdn it will immediately launch the dashboard. more info here Dashboards - PowerShell Universal
Not to hijack this thread, but figured it would be easier instead of starting my own.
Also trying to migrate to Powershell Universal and for the life of me I can’t get pages to work in separate files at all.
Another issue I’m having is with using scripted jobs instead of scheduled endpoints with the PSUCache command. The cached values don’t seem to be accessible. Using the example of Get-Date works fine, but trying to do anything more robust is failing.