Cannot use WebDeploy 3.6 on IIS 10.0

I am using IIS 10.0 on Windows Server 2016. I found that option Deploy -> “Export Web Application” (when you right-click a web application in IIS) was missing. The reason for this is, that there have been some security related changes to web deploy. Before downloading and installing web deploy 3.6, you will have to install web server role Management Service. Note: the order of installation is important.
First install the Management Service, then install WebDeploy 3.6. If you installed Web Deploy 3.6 before, uninstall the application first
(via Control Panel, Add/Remove Programs).

To install Management Service:

  1. Go to the Server Manager. Open server roles.
  2. Go to role Web Server, Management Tools, Management Service
  3. Install