"Error: Failure in adding an application to [Server Name]"

The application deployment has not completed successfully if you receive an "Error: Failure in adding an application to Local PowerServer" message. This typically occurs during Task 3: application deployment.

Cause A: PowerServer is either not running or cannot be found by PowerServer Toolkit.

Solution A: Restart PowerServer and click Retry to re-deploy the application.

Cause B: You did not specify correct deployment username and password in the PowerServer profile.

Solution B: Check with the AEM admin whether the deployment security is on for the PowerServer, and what are the accounts allowed to deploy applications to the PowerServer. Specify an authorized deployment username and password in the PowerServer profile, and make sure "Test PowerServer Settings" is successful.