Hello,
This is my very first post on the forums, I’ve started using Powershell since a few months and it’s really captivating!
In the last few years my job has been installing and configuring my company’s proprietary software, a .NET application suite with some Windows services, ASP.NET web layer, SQL database layer and so on. Since this kind of activity would require a lot of manual “Windows clicking”, I found in Powershell the right automation tool. I started writing a Powershell module to install, deploy, configure and monitor all the components of our software - and right now I’m quite satisfied with the result, although it still needs a lot of improvement.
Specifically, the first version of my module included a lot of private company data (such as internal files, connection strings, services names, network paths and so on), something I was quite uncomfortable with. Therefore I collected all the sensitive data into a JSON file, that is loaded into the module as a global variable by the .psm1 script.
The module is designed to accept any JSON file with similar structure, so that it can be used as an automation tool for any .NET application suite with a similar architecture.
My question is: would this approach be considered a suitable one? Or are there any better options to deal with company data within a Powershell module?
Any help would be highly appreciated!
PS: pardon me for any mistake in my English, as it’s not my native language.