AZ-801 · Question #82
Server1: Windows Server 2016 Server2: Windows Server 2022 Both servers are configured to enable website deployment by using the Web Deployment Tool. Server1 hosts a website named Site1 that has Web De
This question tests knowledge of the MSDeploy (Web Deployment Tool) command-line syntax for performing a full site synchronization between two IIS servers using the Web Deployment Agent Service endpoint. The key is knowing the correct verb, provider, and remote service URL format
Question
Explanation
This question tests knowledge of the MSDeploy (Web Deployment Tool) command-line syntax for performing a full site synchronization between two IIS servers using the Web Deployment Agent Service endpoint. The key is knowing the correct verb, provider, and remote service URL format.
Approach. The correct command uses msdeploy -verb:sync as the action, the appHostConfig provider to capture full IIS site configuration (bindings, app pools, content), and specifies the source as Site1 on Server1 and the destination as Site1 on Server2. Critically, the Web Deployment Agent Service endpoint URL format is https://Server2/MsDeployAgentService - this distinguishes it from the Web Deploy Handler which uses https://Server2/MsDeploy.axd. A representative command looks like: msdeploy -verb:sync -source:appHostConfig="Site1",computerName="https://Server1/MsDeployAgentService" -dest:appHostConfig="Site1",computerName="https://Server2/MsDeployAgentService". The Agent Service requires local Administrator credentials on the target server, making it suitable for server-to-server admin migrations.
Concept tested. MSDeploy (Web Deployment Tool) command syntax: distinguishing the -verb:sync action, the appHostConfig provider for full IIS site sync, and the Web Deployment Agent Service endpoint URL (/MsDeployAgentService) versus the Web Deploy Handler endpoint (/MsDeploy.axd).
Reference. Microsoft Docs - Web Deploy Command Line Reference: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd568991(v=ws.10)
Topics
Community Discussion
No community discussion yet for this question.