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

README.md

Function App Get-AzRunningVMs

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

Image

Deployment

The arm template only deploys the App itself, not the code. For a complete guide on deployment, please see the following blog:

4bes.nl - Manual setup: Configure Azure Functions for PowerShell in the portal

4bes.nl - 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.