Get all PowerApps in your tenant
Sample script to create a lists of all apps in your tenant and exports to CSV
Summary
Sample script to create a lists of all apps in your tenant
#get all apps
$apps = Get-AdminPowerApp
#Array to hold result
$powerApps = @()
#Iterate through each field in the array
Foreach ($app in $apps)
{
#Send Data to object array
$powerApps += New-Object PSObject -Property @{
'AppName' = $app.AppName
'DisplayName' = $app.DisplayName
'CreatedTime' = $app.CreatedTime
'Owner' = $app.Owner.displayName
'LastModifiedTime' = $app.LastModifiedTime
'EnvironmentName' = $app.EnvironmentName
'IsFeaturedApp' = $app.IsFeaturedApp
'appType' = $app.Internal.appType
}
}
#exporting the array to csv
$powerApps | Export-Csv "C:\Development\PowerShell\TEMP\powerAppsExport.csv" -NoTypeInformation -Force
Contributors
| Author(s) |
|---|
| Jimmy Hang |
Disclaimer
THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Tool documentation & references
- Want to learn more about Power Apps PowerShell and the cmdlets
Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets.