AzureDevOpsMgmt.Startup.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$StartupInProgress = $false;

if(-not $StartupInProgress)
{
    $StartupInProgress = $true
    $cmdlet = Get-Command -Name Import-AzureDevOpsConfiguration -Module AzureDevOpsMgmt
    $cmdlet.Visibility = "Private"
    AzureDevOpsMgmt\Import-Configuration

    if($AzureDevOpsConfiguration.Config.CurrentConnection)
    {
        Write-Host -Object "Default configurations have been loaded.`r`nAccount: $($AzureDevOpsConfiguration.Config.CurrentConnection.DefaultAccount)`r`nProject: $($AzureDevOpsConfiguration.Config.CurrentConnection.DefaultProject)"
    }
}