BTSTask and BTSControl for BizTalk 2009

I use BTSTask and BTSControl to perform some deployment operations on BizTalk 2006. We switched to BizTalk 2009, and these tools do not seem to work with BT2009. Is there any specific version or new tools for BT2009?

+1
source share
3 answers

Instead, I will consider BizTalk Framework Deployment . It is built on MSBuild and WIX and is completely unrelated to adding developer tools to quickly deploy development stuff to handle patches through WIX. I highly recommend it.

+1
source

BTSTask BTSControl, Team Foundation Server BizTalk 2009. , , :

BizTalk 2009 - Team Foundation Server 2008 - 1

0

BizTalk 2009, Microsoft.BizTalk.ExplorerOM PowerShell.

BizTalk

( BizTalk Deployments PowerShell)

param
(
    [switch] $start,
    [switch] $stop,
    [string] $appName,
    [string] $connectionstring
)


    function Stop-Application
    {
        $app = $catalog.Applications[$appName]

        if ($app -eq $null)
        {
            Write-Host "Application " $appName " not found" -fore Red
        }
        else
        {
            if ($app.Status -ne 2)
            {
                $null = $app.Stop(63)
                $null = $catalog.SaveChanges()
                $null = $catalog.Refresh()
                Write-Host "Stopped application: " $appName -fore Green
            }
            else
            {
                Write-Host "Application: " $appName " already stopped" -fore Yellow
            }
        }
    }


    function Start-Application
    {
        $app = $catalog.Applications[$appName]

        if ($app -eq $null)
        {
            Write-Host "Application " $appName " not found" -fore Red
        }
        else
        {
            if ($app.Status -eq 2)
            {
                $null = $app.Start(63)
                $null = $catalog.SaveChanges()
                $null = $catalog.Refresh()
                Write-Host "Started application: " $appName -fore Green
        }
        else
        {
            Write-Host "Application: " $appName " already started" -fore Yellow
        }
    }
}


$null = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM")

$catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$catalog.ConnectionString = $connectionstring


if ($catalog.Applications -eq $null)
{
    Write-Host "Application catalog is empty" -fore Red
}


if ($start)
{
    Start-Application
}


if ($stop)
{
    Stop-Application
}

BizTalk MSBuild, BTSTask ExplorerOM PowerShell. ( ).

0

Source: https://habr.com/ru/post/1753945/


All Articles