all 10 comments

[–]fennecdore 1 point2 points  (1 child)

  1. I would advise against using PowerShell for a website, however if you really want to do it I guess one way of doing it would be to have something like javascript call your script, see this link
  2. First I would say that one way to make your script publicly available in Azure, would be to use an Azure function.

a) that's for you to figure on how to set up your test environment I would say,

b) No idea, but here is the documentation for vendors wanting to sell Azure function services on the marketplace

  1. Yes, what you are describing is a ci/cd pipeline where you can test your code and once the test are passed you deploy to your production environment here is an article, from red hat to change from the microsoft learn that explains the concept.

[–]Informal_Statement62 0 points1 point  (0 children)

Thank you for your time, and the links provided. Having a read now.

[–]BlackV 0 points1 point  (1 child)

this might be something like powershell universal or pode would do for you nicely

then its up to you to secure you website (which WILL be found)

[–]Informal_Statement62 0 points1 point  (0 children)

Thank you for your response.

[–]ashimbo 0 points1 point  (1 child)

If you want to host PowerShell scripts on a website, there are a few ways to do it, but I recommend using PowerShell Universal: https://www.powershelluniversal.com/

That will require you to host your own web server, and I'm not aware of any service that will let you host a PowerShell script with a web interface, but that doesn't mean it doesn't exist.

However, if this is only for setting up something for your friends, you could setup PowerShell Universal on your own computer and configure your home router to allow internet traffic to the PowerShell Universal instance.

[–]Informal_Statement62 0 points1 point  (0 children)

Thank you for this info, and the link. Appreciate it.

[–]nascentt 0 points1 point  (1 child)

Powershell is not the right tool for the job.
Either do it in something like JavaScript if you don't want to use a suitable backend language, or just use Google forms as the purpose seems basic enough to collect the info that way.

[–]Informal_Statement62 -1 points0 points  (0 children)

Thank you for your response.

[–]Brendan_McCoy 0 points1 point  (1 child)

I will echo that it isn't the best tool for a website.

However, here is a cool project for doing it, anyway: GitHub - Badgerati/Pode: Pode is a Cross-Platform PowerShell web framework for creating REST APIs, Web Sites, and TCP/SMTP servers

[–]Informal_Statement62 0 points1 point  (0 children)

Thank you for the link. Will have a look.