Deploy ASP.NET Core To IIS With Environment Variables.
Learn how to configure IIS for ASP.NET Core application environment.
Note: ASP.NET Core web applications need the Hosting Bundle to be installed on your machine/server, which includes the .NET Runtime and IIS support.