Hi,
Setup:
I am running a Powershell Universal as a Docker container hosted on a Linux machine. Scripts and database are located on the Linux machine and are attached as a volume to the container.
Issue:
After upgrading from 4.4.1 to Powershell Universal v5.1.2, the dashboard does not display data correctly. When any one script runs, it affects and changes the values of where other scripts output would be. On the image you can see that most values are the same, this was caused by running one script which should only affect one section of the dashboard.
I have created two Docker containers, one running v4 and the other v5. Other than the database, they are identical. The app running on the container with PSUv4 is working flawlessly.
Clearly I am missing something.
I would appreciate any suggestions.
Thank you -
8fa397f3f7f8803afcfcc95c3a74d31a7c7bb6af.jpeg
Can you give some insight into how you are running these scripts and maybe a little info on how you have this app formatted?
Adam Driscoll
PowerShell Expert and Developer at Devolutions
The app defines a dashboard with links to navigate between different sections. Task-based scripts, in this example RDS reservations, are scheduled to query AWS for data.
App/UI Script:
This script creates a dashboard using Universal Dashboard with navigation elements to access different pages.
It includes:
Independent Task-Based Script (AWS RDS Data Collection):
Task-based scripts indeed use AWSPowerShell.NetCore to interact with AWS services and return PSCustomObject collections for data.
It performs:
Data Synchronization Script for RDS Reservations:
Please let me know if you have any questions. I am happy to provide sample scripts.
And are these scripts running with Invoke-PSUScript or are they all a part of the dashboard?
Adam Driscoll
PowerShell Expert and Developer at Devolutions
Hi Adam,
The " Data Synchronization Scripts" are the actual pages. About half of those scripts contain Invoke-PSUScrip, as well as Get-PSUScript. The Home page does not use Invoke-PSUScript, it only uses Get-PSUScript. The Home page contains multiple summary sections, each displlyed within a Card.
example of a Card:
RDS Summary card
…and so on
Each summary section is dislayed in a Card with:
Header: title and timestamp
Body: contains links to the actual, in this case, RDS reservation page
The Home page uses New-UDDynamic component to auto-refresh the grid’s information.