Created
March 14, 2019 00:16
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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