Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions EOLHostMigration/CheckEOLAppsPerAzSub.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# This script lists outs Azure Function apps that are running on the v3 version of the host so they can be upgraded
# Review https://learn.microsoft.com/en-us/azure/azure-functions/migrate-version-3-version-4 for details on how to upgrade to ~4 of the runtime

$Subscription = '<YOUR SUBSCRIPTION ID>'

Set-AzContext -Subscription $Subscription | Out-Null
$subscriptions = Get-AzSubscription

foreach ($sub in $subscriptions) {

Set-AzContext -Subscription $sub| Out-Null

$FunctionApps = Get-AzFunctionApp

$AppInfo = @{}
Expand All @@ -18,6 +20,5 @@ foreach ($App in $FunctionApps)
}

$AppInfo
$AppInfo.Count

$AppInfo | Export-Csv -Path "$PSScriptRoot\YourEOLApps.csv" -NoTypeInformation
}