Public/Helper/Remove-AdoDefault.ps1
|
function Remove-AdoDefault { <# .SYNOPSIS Remove default Azure DevOps environment variables. .DESCRIPTION This function removes the default Azure DevOps environment variables from both the current session. .EXAMPLE Remove-AdoDefault Removes the default Azure DevOps environment variables from both the current session. #> [CmdletBinding(SupportsShouldProcess)] param () begin { Write-Verbose ("Command: $($MyInvocation.MyCommand.Name)") } process { try { if ($PSCmdlet.ShouldProcess('Default Azure DevOps environment variables', 'Remove')) { Set-AdoDefault -Organization $null -Project $null -Confirm:$false } } catch { throw $_ } } end { Write-Verbose ("Exit: $($MyInvocation.MyCommand.Name)") } } |