Restore-WFFarm
Restore-WFFarm
這個 Cmdlet 在嚴重損壞修復情況下使用復原的資料庫來設定陣列。
語法
Parameter Set: AutoCert
Restore-WFFarm -CertificateAutoGenerationKey <SecureString> -InstanceDBConnectionString <String> -ResourceDBConnectionString <String> -WFFarmDBConnectionString <String> [-AdminGroup <String> ] [-ConsistencyVerifierLogPath <String> ] [-HttpPort <Int32> ] [-HttpsPort <Int32> ] [-InstanceStateSyncTime <DateTime> ] [-RunAsAccount <String> ] [ <CommonParameters>]
Parameter Set: CustomCert
Restore-WFFarm -InstanceDBConnectionString <String> -OutboundCertificateThumbprint <String> -ResourceDBConnectionString <String> -SslCertificateThumbprint <String> -WFFarmDBConnectionString <String> [-AdminGroup <String> ] [-ConsistencyVerifierLogPath <String> ] [-EncryptionCertificateThumbprint <String> ] [-HttpPort <Int32> ] [-HttpsPort <Int32> ] [-InstanceStateSyncTime <DateTime> ] [-RunAsAccount <String> ] [ <CommonParameters>]
詳細描述
執行Restore-WFFarm
(在嚴重損壞修復的情況下) 使用復原的資料庫來設定陣列。
參數
-AdminGroup<String>
代表擔任工作流程管理員的一群使用者。
別名 |
無 |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-CertificateAutoGenerationKey<SecureString>
這代表密碼,用於安全地將自動產生的憑證儲存在資料庫中。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-ConsistencyVerifierLogPath<String>
別名 |
LogFilePath |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-EncryptionCertificateThumbprint<String>
此憑證用於保護 SQL 連接字串。若未提供,則使用 SslCertificate 的值。代表加密憑證。
別名 |
無 |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-HttpPort<Int32>
用於 HTTP 通訊的連接埠號碼。
別名 |
無 |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-HttpsPort<Int32>
用於 HTTPS 通訊的連接埠號碼。
別名 |
無 |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-InstanceDBConnectionString<String>
代表閘道資料庫的連接字串。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-InstanceStateSyncTime<DateTime>
別名 |
syncTime |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-OutboundCertificateThumbprint<String>
供 Workflow Manager 1.0 用來作為輸出憑證的憑證。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-ResourceDBConnectionString<String>
代表服務匯出排容器資料庫的連接字串。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-RunAsAccount<String>
代表會執行服務的帳戶。
別名 |
無 |
必要項? |
false |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-SslCertificateThumbprint<String>
代表工作流程陣列使用的 SSL 憑證。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-WFFarmDBConnectionString<String>
這代表其中儲存所有組態設定的資料庫的連接字串。
別名 |
無 |
必要項? |
true |
位置? |
named |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
<CommonParameters>
這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters
輸入
輸入類型是可透過管道傳送至指令程式的物件類型。
輸出
輸出類型是指令程式所發出的物件類型。
注意
- 此 Cmdlet 可能包含逾時,其具備WFRuntimeSettingFailed 例外狀況。執行此命令之後,其他查詢應該用來決定作業是否成功。
範例
範例 1
使用復原的資料庫來還原工作流程陣列。
PS C:\> $CertKey=convertto-securestring 'CertificatePassword' -asplaintext-force;
Restore-WFFarm -ResourceMgmtDBConnectionString 'Data Source=SqlServerName;Initial Catalog=WfResourceDatabase;Integrated Security=True' -FarmMgmtDBConnectionString 'Data Source=SqlServerName;Initial Catalog=RecoverWFManagementDB;Integrated Security=True' -InstanceMgmtDBConnectionString 'Data Source=SqlServerName;Initial Catalog=WfInstanceDatabase;Integrated Security=True' -CertAutoGenerationKey $CertKey
範例 2
使用復原的資料庫來還原工作流程陣列。
PS C:\> $sec = ConvertTo-SecureString -Force -AsPlainText Password~1
Restore-AzureWFFarm -InstanceDBConnectionString "Data Source=localhost;Initial Catalog= WFInstanceManagementDB;Integrated Security=SSPI;Asynchronous Processing=True" -ResourceDBConnectionString "Data Source=localhost;Initial Catalog= WFResourceManagementDB;Integrated Security=SSPI;Asynchronous Processing=True" -InstanceStateSyncTime "June 28, 2012 12:30:00 PM" -ConsistencyVerifierLogPath "C:\ETH\AppFabricTemp\Textsec.txt" -WFFarmDBConnectionString "Data Source=localhost;Initial Catalog=WFManagementDB1;Integrated Security=SSPI;Asynchronous Processing=True" -Verbose -CertificateAutoGenerationKey $sec