导出 (0) 打印
全部展开

用于创建 Workflow 场的示例脚本

此脚本演示如何创建 Workflow Manager 场。

# 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


生成日期:

2013-10-23

社区附加资源

添加
显示:
© 2014 Microsoft