Azure Web Job and PowerShell Module

Eric Kyaw 26 Reputation points
2020-04-20T08:31:39.767+00:00

Hi All,

Is it possible to install PowerShell module in Azure Web Job? because I need to implement a console application which will host in the Azure Web Job will use PowerShell command for Power Apps (https://learn.microsoft.com/en-us/power-platform/admin/powerapps-powershell) to extract the Power Apps information.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,409 questions
0 comments No comments
{count} votes

Accepted answer
  1. Grmacjon-MSFT 17,456 Reputation points
    2020-05-03T04:23:46.63+00:00

    Hi @Eric Kyaw ,

    Thanks for your patience.

    Based on this response from the engineering team and due to the current sandbox security restriction imposed on Azure Web sites/web job, running Azure PowerShell command in Azure Web Job is currently not supported. The product group is aware of this limitation and working to address this, there is no ETA we can share at this point. You can track the work on this repo.

    We apologize for any frustration this limitation may cause. You may try looking into PowerShell runbook in Azure Automation to see if it fits your scenario. PowerShell runbooks are based on Windows PowerShell. You directly edit the code of the runbook using the text editor in the Azure portal. Please see this tutorial for more information on PowerShell runbook.

    Hope that helps. Let us know if you have further questions

    Best,

    Grace


0 additional answers

Sort by: Most helpful