Invoke on premises PowerShell from an Azure API ?

MS Techie 2,676 Reputation points
2021-10-14T18:10:31.583+00:00

Hi,

How can i invoke the PowerShell residing on-premises from Azure API (Like Azure Web App or Azure Function or Azure Logic app)

Please help

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,238 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,838 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
312 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,855 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,851 Reputation points
    2021-10-19T18:53:30.847+00:00

    Hi @MS Techie ,

    Thanks for the addional information. You can use Azure App Service Hybrid Connections for you scenario.

    There are a number of benefits to the Hybrid Connections capability, including:

    - Apps can access on-premises systems and services securely.

    • The feature doesn't require an internet-accessible endpoint.
    • It's quick and easy to set up. No gateways required.
    • Each Hybrid Connection matches to a single host:port combination, helpful for security.
    • It normally doesn't require firewall holes. The connections are all outbound over standard web ports.
    • Because the feature is network level, it's agnostic to the language used by your app and the technology used by the endpoint.
    • It can be used to provide access in multiple networks from a single app.
    • It's supported in GA for Windows apps and Linux apps. It isn't supported for Windows container apps.

    This Azure doc shows you how to Configure an on-premises server for PowerShell remoting

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    ----------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.