< Back

Select-CurrentEnvironment

Sat Jan 18, 2020 3:50 pm

NAME Select-CurrentEnvironment



SYNOPSIS

Sets the current environment for listing powerapps, flows, and other environment resources





SYNTAX

Select-CurrentEnvironment [-EnvironmentName] <String> [<CommonParameters>]



Select-CurrentEnvironment -Default [<CommonParameters>]





DESCRIPTION

The Select-CurrentEnvironment cmdlet sets the current environment in which commands will

execute when an environment is not specified. Use Get-Help Select-CurrentEnvironment -Examples

for more detail.





PARAMETERS

-EnvironmentName <String>

Environment identifier (not display name).



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Default [<SwitchParameter>]

Shortcut to specify the default tenant environment



Required? true

Position? named

Default value False

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:\\>Select-CurrentEnvironment -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239



Select environment 3c2f7648-ad60-4871-91cb-b77d7ef3c239 as the current environment. Cmdlets invoked

after running this command will operate against this environment.









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



PS C:\\>Select-CurrentEnvironment ~default



Select the default environment. Cmdlets invoked after running this will operate against the default

environment.











RELATED LINKS