Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianTJackett/e05c7ee20e7e970e3d5ee9c961b1fae1 to your computer and use it in GitHub Desktop.
Save BrianTJackett/e05c7ee20e7e970e3d5ee9c961b1fae1 to your computer and use it in GitHub Desktop.
Iterate through all environments and get all PowerApps apps and the connections they use.
Add-PowerAppsAccount
$environments = Get-PowerAppEnvironment
foreach($environ in $environments.EnvironmentName)
{
$apps = Get-AdminPowerApp -EnvironmentName $environ
$apps | Add-Member -MemberType ScriptProperty -Name Connections -Value {$this.internal.properties.connectionReferences.PSObject.Properties.Value.DisplayName} -Force
$apps | Select-Object AppName, DisplayName, Connections
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment