PowerShell On-Prem plugin
Currently only PowerShell v7 is supported for this plugin.
Click the following link for additional content such as blogs, videos, use cases, and more:
Visualize data from PowerShell scripts that run on your relay agents. Use this plugin when your scripts are stored on your own servers, or need to reach systems on your private network.
This plugin runs scripts stored on a machine with a relay agent. If you don't need to reach your own servers, use the PowerShell plugin instead, and write your scripts in the data stream parameters.
An on-prem data source uses a relay agent to connect SquaredUp to a data source running on your internal network.
Relay agents allow you to securely connect to data sources inside your own network (on-prem).
A relay agent is installed on a server on your internal network, and has access to your data source.
When a plugin uses a relay agent it means that you don't need to open your firewall to allow SquaredUp access to the data source.
See Relay Agents.
Adding a data source
To add a data source, open the relevant workspace and then click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Add data source page.
Before you start
Configuring the SquaredUp relay agent
This is an on-prem plugin, meaning it uses a relay agent to connect to an on-prem data source on your private network that is not publicly accessible.
You will need to configure a relay agent before you configure this data source.
This feature is available with an Enterprise plan
Relay agents allow you to securely connect to data sources inside your own network (on-prem).
A relay agent is installed on a server on your internal network, and has access to your data source.
When a plugin uses a relay agent it means that you don't need to open your firewall to allow SquaredUp access to the data source.
If you have already created a relay agent in SquaredUp that can access this data source, then you can skip this step and go to Configuring the data source.
Configuring the data source
Display name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.Agent group:
Select the Agent Group that contains the agent(s) you want to use. Agent groups are managed from Settings > Data > Relay.- Scripts directory:
Enter the path to the directory where you store the PowerShell scripts on the machine you deployed the agent on.NoteThe path must be written as an absolute path, for example
C:\Scripts\SquaredUpCloud
or, if you are using a network share,\\fs01\Scripts\SquaredUpCloud - Import script:
Optional. If you want to use a script for importing objects into SquaredUp, you can specify the script here by entering its full file name, for exampleget-objects.ps1See creating on-prem PowerShell scripts for detailed information on creating import scripts.NoteThe import script must be stored in the same directory you defined above.
- Only allow signed scripts (windows only):
Select to only run scripts that have a valid signature. The check only runs on relay agents installed on Windows. On Linux, this setting has no effect. Restrict access to this data source:
Optionally, enable this toggle if you only want certain users/groups to have access to the data source, or those with the permission to link it to new workspaces. See data source access control for more information.- Click Add.
Testing and troubleshooting
If you encounter an error, refer to the guidance or contact our support team in-app or via SquaredUp Support
For errors on dashboard tiles see Troubleshooting tiles.
Error messages
Why isn’t my script returning expected data?
We always recommend ensuring that any scripts will successfully run outside of SquaredUp in the first case, and that data is formatted and returned correctly. If everything looks okay, you may wish to review how the columns are being used in the Filter | Group | Sort and Columns tabs in the tile configuration.
Next steps
PowerShell scripts
To write the scripts this data source runs, including import scripts for adding objects, see Creating On-Prem PowerShell Scripts.
Data streams
You can use these data streams to create new tiles to show data, or if there are preconfigured dashboards installed you can copy or edit those.
Data streams are named queries targeted at a data source, typically mapped to a specific API endpoint. They define how SquaredUp retrieves live data. By standardizing information from diverse formats into a simple table, data streams provide a consistent starting point regardless of the original source system.
Each plugin includes its own set of data streams. When editing a tile or exploring data, the data stream you choose acts as the entry point to the objects and records within that data source.
Scoped data streams allow you to specify which objects you want to pull data for. Global data streams return general information that is not tied to objects.
Some data streams are configurable, meaning you can configure additional settings on the Parameters tab of the tile editor to create a bespoke query.
When you're creating a tile, you can tweak data streams by grouping or aggregating specific columns.
See Data Streams for more information.
The following data streams are installed with this plugin.
Run script On-Premise
Execute a script, providing a scope that will be passed to the script
Parameters