Not all proxies are equal. Determine:
Uninstall-WindowsFeature -Name Web-Application-Proxy -IncludeManagementTools -Restart Use code with caution.
How to Remove a Web Application Proxy Server from a Cluster Web Application Proxy (WAP) servers provide secure remote access to internal applications. When scaling down, upgrading infrastructure, or decommissioning old hardware, you must remove WAP servers from your cluster.
Run the following command in your elevated PowerShell session: powershell Remove-WindowsFeature RemoteAccess -IncludeManagementTools Use code with caution. remove web application proxy server from cluster
Get-WebApplicationProxyApplication | Export-Clixml -Path "C:\Backup\WAP_Apps_Backup.xml" Use code with caution. 2. Step 1: Remove the Server from the Load Balancer
To remove a Web Application Proxy (WAP) server from a cluster, you must perform two primary tasks: update the WAP configuration to remove the server's record and then decommission the server itself by uninstalling its roles.
Note: This command removes the configuration but does not remove the server object from Active Directory. Step 4: De-provision the Server Finally, remove the server from its infrastructure role. Remove the server from the load balancer pool permanently. Not all proxies are equal
# Temporarily mark the server as down in the upstream block upstream backend_wan server 10.0.0.10:80; # Keep this server 10.0.0.11:80 down; # Mark removal node as down
Once traffic is stopped, prevent the services from running on the node to be removed. Log into the WAP server. Open ( services.msc ). Locate the Web Application Proxy service. Stop the service. Change the Startup Type to Disabled .
Only proceed when the counters hit zero. Step 5: Post-Removal Verification and Troubleshooting
In the Features page, uncheck (under RSAT). Confirm and click Remove , then restart the server. 5. Step 4: Clean Up AD FS Connected Servers (If Required)
How to Remove a Web Application Proxy Server from a Cluster Web Application Proxy (WAP) servers act as reverse proxies to protect corporate applications and facilitate Active Directory Federation Services (AD FS) traffic. When upgrading hardware, scaling down infrastructure, or repurposing servers, you must safely remove a WAP server from its cluster.
(If the cmdlet does not apply to your specific functional level, the WAP server will simply time out and drop off from active sync monitors without affecting operation.) 6. Step 5: Post-Removal Verification and Troubleshooting