Run custom script for each tenant


We use Octopus to deploy our ASP.NET application on our various servers. Each server(deployment target) has 40-50 tenants. We want to run PowerShell script to modify some file on each tenant. Can you please help me how can we run PowerShell script for each tenant? How can we give relative path of a file in script?

Should we need to use Post Deploy Script feature in a “Step” of Process?

Can you please give me solution with an example? It will be very helpful for me.

Greetings Qasim :slight_smile: The PowerShell script that you want to run, would this be unique to each tenant? Are there tenants that could be grouped together?