< Back

Set-AxActiveEnvironmentConfig

Sat Jan 11, 2020 8:19 am

NAME Set-AxActiveEnvironmentConfig



SYNOPSIS

Set the active environment configuration





SYNTAX

Set-AxActiveEnvironmentConfig [-Name] <String> [-Temporary] [<CommonParameters>]





DESCRIPTION

Updates the current active environment configuration with a new one



Use this to update the default parameters across the module, to make it easier to call your different commands





PARAMETERS

-Name <String>

Name of the environment configuration you want to load into the active environment configuration



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Temporary [<SwitchParameter>]

Instruct the cmdlet to only temporarily override the persisted settings in the configuration store



Required? false

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



NOTES





Tags: Servicing, Environment, Config, Configuration, Servers



Author: M??????tz Jensen (@Splaxi)



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



PS C:\\>Set-AxActiveEnvironmentConfig -Name "UAT"



This will set the environment configuration named "UAT" as the active configuration.











RELATED LINKS

Add-AxEnvironmentConfig

Get-AxActiveEnvironmentConfig

Get-AxEnvironmentConfig