Microsoft Dynamics 365 Finance + Operations (on-premises) 環境向けの Service Fabric clusters を更新します
この記事では、Microsoft Azure Service Fabric cluster を Dynamics 365 Finance + Operations (on-premises) 環境向けに更新する方法について説明します。 Service Fabric Cluster のコード バージョンと構成を更新する最善の方法について説明します。
Service Fabric Cluster ランタイムの更新
Dynamics 365 Finance + Operations (on-premises) 環境では、特定バージョンの Service Fabric ランタイムが必要です。 ご利用の Finance + Operations のバージョンに必要な最小の Service Fabric ランタイム バージョンは、最小の Azure Service Fabric ランタイムでご確認いただけます。
クラスタ用の Service Fabric ランタイムを更新するには、次の手順に従います。
Service Fabric Cluster に属するノードから、以下の PowerShell コマンドを実行して、利用可能な Service Fabric ランタイムのバージョン一覧を取得します。
# Connect to the Service Fabric Cluster Connect-ServiceFabricCluster # Get the latest Service Fabric runtime version downloaded to your cluster Get-ServiceFabricRegisteredClusterCodeVersion
メモ
クラスタの発信インターネット アクセスが大幅に制限されている場合は、ランタイムがプリロードされていない可能性があります。 この場合、作業を続ける前に、接続性のないクラスターをアップグレードする手順に従って、最新のコードと構成をダウンロードしてください。
次のコマンドを実行して、クラスタを特定のバージョンに更新します。
# Update the Service Fabric runtime version Start-ServiceFabricClusterUpgrade -Code -CodePackageVersion <version> -Monitored -FailureAction Rollback
オプション : クラスタに任意のノード タイプの 1 つのノードがある場合は、次のコマンドを実行して PreUpgradeSafetyCheck チェックをスキップします。これは、タイム アウトの原因となる可能性があります。
# If you are using a single Microsoft SQL Server Reporting Services node, use UpgradeReplicaSetCheckTimeout to skip PreUpgradeSafetyCheck check, otherwise it will timeout Update-ServiceFabricClusterUpgrade -UpgradeReplicaSetCheckTimeoutSec 30
アップグレードの状況を確認するには、次のコマンドを実行します。
Get-ServiceFabricClusterUpgrade
Service Fabric Cluster の構成を更新する
新しい Service Fabric Cluster 構成ファイルがあり、それをクラスターに適用する必要がある場合は、以下の PowerShell コマンドを実行してクラスターの構成を更新します。
# Connect to the Service Fabric Cluster
Connect-ServiceFabricCluster
# Start the cluster configuration upgrade with the new configuration file
Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath ClusterConfig.json
# If you have a node type with a single node, use UpgradeReplicaSetCheckTimeout to skip PreUpgradeSafetyCheck check, otherwise it will time out
Update-ServiceFabricClusterUpgrade -UpgradeReplicaSetCheckTimeoutSec 30
# To monitor the status of the upgrade, run the following and note UpgradeState and UpgradeReplicaSetCheckTimeout
Get-ServiceFabricClusterUpgrade
# While monitoring the status of the upgrade, if UpgradeReplicaSetCheckTimeout was reset to the default (example 49710.06:28:15), run the following command again
Update-ServiceFabricClusterUpgrade -UpgradeReplicaSetCheckTimeoutSec 30
# When UpgradeState shows RollingForwardCompleted, the upgrade is finished