nerdexam
Microsoft

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

Migrate servers and workloads

Question

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 Deploy Publishing configured. You plan to migrate Site1 to Server2. You need to perform a full synchronization of Site1 by using the Web Deployment Agent Service. How should you complete the command? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

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

#Web Deploy#Website Migration#msdeploy#Synchronization

Community Discussion

No community discussion yet for this question.

Full AZ-801 Practice