liveBook · Manning

Web Deploy

As explained in Building Web APIs with ASP.NET Core

Web Deploy is a Microsoft deployment tool for synchronizing and publishing web applications and their related content to web servers.

Web Deploy is an IIS-related client-server component for publishing web applications directly from Visual Studio to a Windows web server. It replaces separate file-transfer work with an integrated deployment path. section 12.3 section 12.3.3

A practical IIS deployment setup requires:

  • Install IIS and Web Deploy on the Windows VM that will host the ASP.NET Core web API. section 12.3
  • Open TCP port 8172 for inbound traffic used by the IIS management service and Web Deploy. section 12.3.3
  • Create a Visual Studio publishing profile that targets the compatible Windows server and publishes the application directly. section 12.3.3 section 12.4.1

Publishing an API to an Azure VM

For a production web API hosted on a Windows Azure VM, install IIS and Web Deploy, allow port 8172, then choose a Visual Studio target that publishes and deploys together. The application can go live at the end of the publishing process. section 12.3 section 12.4.1

Figure 12.19 Visual Studio Publish feature
12-19

Use the Visual Studio Publish feature overview to locate deployment targets and publishing-profile options. section 12.4.1

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Defines the component and walks through installation, port configuration, and publishing profiles, while deferring IIS internals.
Examples
Uses a Windows Azure VM, an IIS-hosted web API, port 8172, and a one-click Visual Studio publishing profile.
What it assumes
Assumes a Windows server and Visual Studio, while introducing the IIS and Web Deploy components needed for direct publishing.
What you can do after
Operate deployment through a Visual Studio publishing profile after configuring IIS, Web Deploy, and inbound port 8172.
How it connects
Connects IIS, Visual Studio publishing profiles, Azure virtual machines, ASP.NET Core, and alternative transfer methods such as FTP.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.