Skip to main content
Submitted

Powershell Script Actions

  • December 4, 2019
  • 2 replies
  • 1 view

Forum|alt.badge.img

[This subject has been brought up a couple times, but the original post is from 2017.  I'm reposting my recent comment here because I feel like nobody will see the old 2017 post because this site only shows the most recent by default.  Original post: https://support.timextender.com/hc/en-us/community/posts/115018657763-Ability-to-include-powershell-script-actions-in-TX]

 

We and several of our clients would benefit greatly by having the ability to execute a PowerShell script from within TimeXtender as Script Actions.  

Here are a couple scenarios:

1.

Scaling Azure SQL DB instances with SQL is problematic.  I can use a SQL statement to scale a DB up prior to the load, but we are unable to create a loop and wait for the DB to finish scaling.  The problem is that we can wait.... but the session disconnects when the larger DB is ready and Azure SQL switches the connection.  The SQL Stored Proc is never able to determine if the database scaled successfully.

A Powershell script could be called in order scale the DB as an alternative and since it's session will not be disconnected during the resizing process, it would allow for a scale, wait, confirm, and continue process.

This could be implemented as an external executable for execution packages, but that would require multiple execution packages to properly sequence the scale up, load, scale down process.

If Powershell was available as a type of Script Action which could be called at the table level, it would also satisfy the requirement of a client of ours as well.  (See #2)

2.

My client has written C# processes to extract data from another system.  Ideally, these extracts needs to be a part of the Discovery Hub load so the data in refreshed in a timely manner without trying coordinate many different schedules. 

Their C# process to pump data into custom tables may be rather unique to the user community except for a mention here:

https://support.timextender.com/hc/en-us/community/posts/360033987671-Possibilty-to-execute-scripts-like-python-powelshell-as-a-custom-script-execution?input_string=Powershell%20Script%20Actions

However, this is something else which Powershell could help with instead of creating many clumsy SSIS Packages and External Executables.  Custom SSIS Packages really are not an option for them since there would be so many to create.

SSIS *Could* be an option IF the external executable SSIS Package calls allowed parameters to be passed in.  Then a more generic SSIS package could be created to execute a process for which the name is passed.  This however doesn't help in an Azure scenario where SSIS isn't available.

2 replies

  • New Participant
  • December 4, 2019

We would like to be able to call PowerShell for a number of scenarios.  OP describes one of our scenarios in #2, but also:

  • submitting custom commands to tabular model to reload specific partitions or create new partitions or alter row level security
  • sending commands in external systems to prep for extract or signal completion.

  • Community Manager
  • February 26, 2021

Thanks for submitting your ideas! Your continued feedback on our product is very important to us. 

We will be evaluating your input for future improvements in the product.

At the time of this posting, the current product roadmap is focused on a major evolution in foundational pieces of our software including splitting the development into ODX, MDW, Semantic Layer and User Portal. With this evolution, we will continue to see incredible innovation in the product that may exceed your expectations or make the need for this feature obsolete.

If you have any questions or would like to discuss further, please reach out to me or the dedicated TimeXtender Solution Specialist in you region. Thanks!