Dışarıya aktar (0) Yazdır
Tümünü Genişlet
EN
Bu içerik dilinizde bulunmamaktadır ancak İngilizce sürümüne buradan bakabilirsiniz.
1 / 1 bunu faydalı olarak değerlendirdi - Bu konuyu değerlendir

Sample Script for creating a Workflow Farm

Updated: October 24, 2012

This script demonstrates how to create a Workflow Manager farm.

# Run it in the Workflow PowerShell Console

# Create new SB Farm
$SBCertAutoGenerationKey = ConvertTo-SecureString -AsPlainText -Force -String ***** Replace with Workflow Certificate Auto-generation key******
New-SBFarm -SBFarmDBConnectionString 'Data Source=localhost;Initial Catalog=SbManagementDB;Integrated Security=True' -InternalPortRangeStart 9000 -HttpsPort 9355 -TcpPort 9354 -MessageBrokerPort 9356 -RunAsName ‘userName@domain' -AdminGroup 'BUILTIN\Administrators' -GatewayDBConnectionString 'Data Source=localhost;Initial Catalog=SbGatewayDatabase;Integrated Security=True' -CertificateAutoGenerationKey $SBCertificateAutoGenerationKey -MessageContainerDBConnectionString 'Data Source=localhost;Initial Catalog=ServiceBusDefaultContainer;Integrated Security=True';

# Create new WF Farm
$WFCertAutoGenerationKey = ConvertTo-SecureString -AsPlainText -Force -String ***** Replace with Workflow Certificate Auto-generation key******;

New-WFFarm -WFFarmDBConnectionString 'Data Source=localhost;Initial Catalog=WFManagementDB;Integrated Security=True' -RunAsName 'userName@domain' -AdminGroup 'BUILTIN\Administrators' -HttpsPort 12290 -HttpPort 12291 -InstanceMgmtDBConnectionString 'Data Source=localhost;Initial Catalog=WFInstanceManagementDB;Integrated Security=True' -ResourceMgmtDBConnectionString 'Data Source=CSDVM991617-TA.redmond.corp.microsoft.com;Initial Catalog=WFResourceManagementDB;Integrated Security=True' -CertificateAutoGenerationKey $WFCertAutoGenerationKey;

# Add SB Host
$SBRunAsPassword = ConvertTo-SecureString -AsPlainText -Force -String ***** Replace with RunAs Password for Service Bus ******;

Add-SBHost -SBFarmDBConnectionString 'Data Source=localhost;Initial Catalog=SbManagementDB;Integrated Security=True' -RunAsPassword $SBRunAsPassword -EnableFirewallRules $true -CertificateAutoGenerationKey $SBCertificateAutoGenerationKey;

# Create new SB Namespace
New-SBNamespace -Name 'WorkflowDefaultNamespace' -AddressingScheme 'Path' -ManageUsers 'CurrentUser@yourDomain','WfRunAsUser@yourDomain';

# Get SB Client Configuration
$SBClientConfiguration = Get-sbclientConfiguration -Namespaces 'WorkflowDefaultNamespace';

# Add WF Host
# Copy the Service Bus Client configuration from Service Bus PowerShell console and store it in a local variable $SBClientConfiguration

$WFRunAsPassword = ConvertTo-SecureString -AsPlainText -Force  -String ***** Replace with RunAs Password for Workflow ******;

Add-WFHost -WFFarmMgmtDBConnectionString 'Data Source=localhost;Initial Catalog=WFManagementDB;Integrated Security=True' -RunAsPassword $WFRunAsPassword -SBClientConfiguration $SBClientConfiguration -EnableHttpPort -CertificateAutoGenerationKey $WFCertAutoGenerationKey -EnableFirewallRules $true;


Workflow Manager 1.0 MSDN Community Forum


Build Date:

2014-01-17
Bunu faydalı buldunuz mu?
(1500 karakter kaldı)
Geri bildiriminiz için teşekkür ederiz

Topluluk İçeriği

Ekle
Show:
© 2014 Microsoft. Tüm hakları saklıdır.