< Back

Get-AdminPowerAppEnvironment

Sat Jan 18, 2020 3:47 pm

NAME Get-AdminPowerAppEnvironment



SYNOPSIS

Returns information about one or more PowerApps environments where the calling uses is an Environment Admin. If

the calling user is a tenant admin, all envionments within the tenant will be returned.





SYNTAX

Get-AdminPowerAppEnvironment [[-Filter] <String[]>] [-CreatedBy <String>] [-ApiVersion <String>]

[-ReturnCdsDatabaseType <Boolean>] [<CommonParameters>]



Get-AdminPowerAppEnvironment [[-Filter] <String[]>] -CreatedBy <String> [<CommonParameters>]



Get-AdminPowerAppEnvironment [-EnvironmentName <String>] [-ApiVersion <String>] [-ReturnCdsDatabaseType <Boolean>]

[<CommonParameters>]



Get-AdminPowerAppEnvironment [-Default] [<CommonParameters>]





DESCRIPTION

The Get-AdminPowerAppEnvironment cmdlet looks up information about =one or more environments depending on

parameters.

Use Get-Help Get-AdminPowerAppEnvironment -Examples for more detail.





PARAMETERS

-Filter <String[]>

Finds environments matching the specified filter (wildcards supported).



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EnvironmentName <String>

Finds a specific environment.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Default [<SwitchParameter>]

Finds the default environment.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-CreatedBy <String>

Limit environments returned to only those created by the specified user (you can specify a email address or

object id)



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <String>



Required? false

Position? named

Default value 2016-11-01

Accept pipeline input? false

Accept wildcard characters? false



-ReturnCdsDatabaseType <Boolean>



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-AdminPowerAppEnvironment



Finds all environments within the tenant where the user is an Environment Admin.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-AdminPowerAppEnvironment -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239



Finds environment 3c2f7648-ad60-4871-91cb-b77d7ef3c239









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-AdminPowerAppEnvironment *Test*



Finds all environments that contain the string "Test" in their display name where the user is an Environment Admin.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-AdminPowerAppEnvironment -CreatedBy 7557f390-5f70-4c93-8bc4-8c2faabd2ca0



Finds all environments that were created by the user with an object of 7557f390-5f70-4c93-8bc4-8c2faabd2ca0











RELATED LINKS