Wednesday, December 11, 2019

D365FO On premises AOS service restart

This powershell script would be run from one of the orchestrators and the AOS node names are AOS_233 and AOS_234. Your node names will be different. The server common name should be the name for the client cert and the thumbprint FindValue should be the thumbprint for that cert.


$ConnectArgs = @{  ConnectionEndpoint = 'localhost:19000';  X509Credential = $True;  StoreLocation = 'CurrentUser';  StoreName = "MY";  ServerCommonName = "clientd365ffo.onprem.contoso.com";  FindType = 'FindByThumbprint';  FindValue = "11AAAA1111AA11A111A1AFA11011111A111AA110"   }
Connect-ServiceFabricCluster 
Restart-ServiceFabricDeployedCodePackage -NodeName "AOS_233" -ApplicationName fabric:/AXSF -CodePackageName "Code" -ServiceManifestName "AXSF" -CommandCompletionMode Verify
Restart-ServiceFabricDeployedCodePackage -NodeName "AOS_234" -ApplicationName fabric:/AXSF -CodePackageName "Code" -ServiceManifestName "AXSF" -CommandCompletionMode Verify


original post: http://www.atomicax.com/article/d365ffo-prem-aos-restart

No comments:

Post a Comment