Running Azure Powershell script on Azure portal

Salil Singh 0 Reputation points

Hi Team,

On Azure portal, i need to run below Azure Powershell script, could you please mention how could I run it -

$FunctionApps = Get-AzFunctionApp

$AppInfo = @{}

foreach ($App in $FunctionApps)


if ($App.Runtime -eq 'dotnet')


$AppInfo.Add($App.Name, $App.Runtime) }





Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,177 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,342 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 94,706 Reputation points MVP

    Hi @Salil Singh ,

    you could run PowerShell scripts or single commands in the Cloud Shell of the Azure Portal:

    Get started with Azure Cloud Shell


    save your script in a file with the extension ps1. For instance Get-AzureFunctionApps.ps1

    Upload the script in your Cloud Shell:

    enter image description here

    Verify the file is uploaded and start the script with ./Get-AzureFunctionApps.ps1

    enter image description here

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)


    Andreas Baumgarten

    1 person found this answer helpful.