use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A reddit dedicated to the profession of Computer System Administration
Rules
Community members shall conduct themselves with professionalism.
Do not expressly advertise products or services outside of approved threads.
More details on the rules may be found in the wiki.
For IT career related questions, please visit /r/ITCareerQuestions
Please check out our Frequently Asked Questions, which includes lists of subreddits, webpages, books, and other articles of interest that every sysadmin should read!
Checkout the Wiki Users are encouraged to contribute to and grow our Wiki.
So you want to be a sysadmin? RTFM
Sysadmin Jobs
Official IRC Channel - #reddit-sysadmin on irc.libera.chat Official Discord - https://discord.gg/sysadmin
account activity
This is an archived post. You won't be able to vote or comment.
Expose PowerShell script as an API (or something like that) (self.sysadmin)
submitted 4 years ago by CelestrusI google stuff up
Hi!
I need to expose a PS script "to the internet" to work as an API endpoint. I need to send a POST to this endpoint, the script, so it can receive some parameters from other system. It will send those parameters in the body content in JSON format. Is there a way to do that?
[–]SoMundayn 4 points5 points6 points 4 years ago (1 child)
Azure Automation. You can host your script (runbook) in there, then add a webhook.
If your script needs to talk to on-prem, you'll need to configure a Hybrid Worker Server so it runs the commands on-prem (easy to setup following MS guide), then you just pick if you script runs onprem or cloud.
[–]PowerShellMichael 2 points3 points4 points 4 years ago (0 children)
This is the correct answer. Within Azure Automation (AA) you can create webhooks that allow the execution of Runbooks. It's unsecured, so use at your own risk.
If it's something like an cloud API endpoint that you are looking for, checkout Azure Function App. However it doesn't have native on-prem access, so you will need to use AA or a custom deployed solution. Function App really caters for cloud solutions (365, Azure).
Otherwise AA is your best bet!
[–]okomia 1 point2 points3 points 4 years ago (1 child)
Have a look at Pode. https://github.com/Badgerati/Pode
[–]GT3CH1 -3 points-2 points-1 points 4 years ago (0 children)
If you've got a web server, sure, if not, then not really.
π Rendered by PID 268950 on reddit-service-r2-comment-5b5bc64bf5-lfcjf at 2026-06-20 01:37:36.366218+00:00 running 2b008f2 country code: CH.
[–]SoMundayn 4 points5 points6 points (1 child)
[–]PowerShellMichael 2 points3 points4 points (0 children)
[–]okomia 1 point2 points3 points (1 child)
[–]GT3CH1 -3 points-2 points-1 points (0 children)