Skip to content
All code to create a PowerShell Function App that gets all running VMs in a subscription
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
FunctionApp initial commit Jun 12, 2019
Tests initial commit Jun 12, 2019
.gitignore initial commit Jun 12, 2019
LICENSE initial commit Jun 12, 2019
azure-pipelines.yml initial commit Jun 12, 2019

Function App Get-AzRunningVMs

The app generates an simple webpage that at shows all running VMs in a subscription.



The arm template only deploys the App itself, not the code. For a complete guide on deployment, please see the following blog: - Manual setup: Configure Azure Functions for PowerShell in the portal - Automatic setup: Deploy Azure Functions for PowerShell with Azure DevOps

Available Components

  • Deployment This folder contains an ARM template to deploy the app, and a PowerShell script that sets the apps permissions
  • FunctionApp This is the code for the Funtion app itself
  • Tests Pester tests for the PowerShell script inside the function app Azure-pipelines.yml a pipeline to test and deploy this app through Azure DevOps
You can’t perform that action at this time.