This is a quick guide that covers how to enable remote publishing using Visual Studio 2019 and a Windows Server 2019 Azure Virtual Machine.
- Add web server role to the server:
- Open Server Manager
- Select add roles and features
- Web Server(IIS), also install Management tools
- Verify that the Management Service is running and configured
- Open Services and search for Web Management Service, start if necessary
- Open Control Panel and go to Programs and Features
- Select Microsoft Web Deploy and click change
- Install all missing modules
- Go to IIS Manager
- Click on Server and then Management Services
- Configure port and enable remote connections, leave default port
- Enable remote connections in Azure
- Login to Azure Admin. Portal
- Click on Virtual Machines and pick the desired one
- Go to Networking
- Add Inbound Port rule for port 8172 (default)
- Test remote publish through Visual Studio
- Left click on web project and then publish
- Use web deploy or VM, it will perform the same operation
- In the Server field use the following format: sample.westus2.cloudapp.azure.com:8172
- Fill the rest of the fields and test with validate connection
- At this point the remote publish should be successful
No hay comentarios.:
Publicar un comentario