Different ways to Restart IIS

1.      From Visual Studio

You can quickly restart IIS express on a development environment of D365 Finance from within Visual Studio. This comes handy when you’re doing development instead of restarting the service from LCS.

2.      Restart a service from LCS

You can use the Restart services functionality in Microsoft Dynamics Lifecycle Services (LCS) to restart individual services that are associated with a Tier 2, Tier 3, Tier 4, or Tier 5 standard acceptance test (sandbox) environment that is deployed in a Microsoft subscription. You can use this functionality to restart the following services:

·       IIS

·       DIXF

·       LCS Diagnostics

·       Batch

·       Reporting Server

Any user who has been added as a project owner, organization admin, or environment manager in an LCS project has permissions to use this functionality.

Note: Restart from LCS option is not available in Dev, Build, Test type environments.

References : https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/lifecycle-services/restart-environment-services

3.      Through Command line

·       Start command prompt as administrator & run the command – iisreset

Take IISReset as a suite of commands that helps you manage IIS start / stop etc. which means you need to specify option (/switch) what you want to do to carry any operation.

Default behaviour OR default switch is /restart with iisreset so you do not need to run command twice with /start and /stop.

Comments