< Back
Enable-BMEnvironment
Post
NAME Enable-BMEnvironment
SYNOPSIS
Enable an environment in BuildMaster.
SYNTAX
Enable-BMEnvironment [-Session] <Object> [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The `Enable-BMEnvironment` function enables an environment in BuildMaster. Environments are permanent and can only
be disabled, never deleted. Pass the name of the environment to enable to the `Name` parameter. If the environment
doesn't exist, you'll get an error.
Pass the session to the BuildMaster instance where you want to enable the environment to the `Session` parameter.
Use `New-BMSession` to create a session object.
This function uses BuildMaster's native and infrastructure APIs.
PARAMETERS
-Session <Object>
An object representing the instance of BuildMaster to connect to. Use `New-BMSession` to create session
objects.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the environment to enable.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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:\\>Enable-BMEnvironment -Session $session -Name 'Dev'
Demonstrates how to enable an environment
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-BMEnvironment -Session $session -Name 'DevOld' -Force | Enable-BMEnvironment -Session $session
Demonstrates that you can pipe the objects returned by `Get-BMEnvironment` into `Enable-BMEnvironment` to enable
those environments.
RELATED LINKS
SYNOPSIS
Enable an environment in BuildMaster.
SYNTAX
Enable-BMEnvironment [-Session] <Object> [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The `Enable-BMEnvironment` function enables an environment in BuildMaster. Environments are permanent and can only
be disabled, never deleted. Pass the name of the environment to enable to the `Name` parameter. If the environment
doesn't exist, you'll get an error.
Pass the session to the BuildMaster instance where you want to enable the environment to the `Session` parameter.
Use `New-BMSession` to create a session object.
This function uses BuildMaster's native and infrastructure APIs.
PARAMETERS
-Session <Object>
An object representing the instance of BuildMaster to connect to. Use `New-BMSession` to create session
objects.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the environment to enable.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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:\\>Enable-BMEnvironment -Session $session -Name 'Dev'
Demonstrates how to enable an environment
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-BMEnvironment -Session $session -Name 'DevOld' -Force | Enable-BMEnvironment -Session $session
Demonstrates that you can pipe the objects returned by `Get-BMEnvironment` into `Enable-BMEnvironment` to enable
those environments.
RELATED LINKS