"Windows admin username cannot be more than 20 characters long, be empty, end with a period(.), or contain the following characters" error while Deploying the Orchestrator from Azure Marketplace

How to solve "Windows admin username cannot be more than 20 characters long, be empty, end with a period(.), or contain the following characters" error while Deploying the Orchestrator from Azure Marketplace?

Issue Description

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": "{\r\n  \"error\": {\r\n    \"code\": \"InvalidParameter\",\r\n    \"message\": \"Windows admin user name cannot be more than 20 characters long, be empty, end with a period(.), or contain the following characters: \\\\ / \\\" [ ] : | < > + = ; , ? * @.\",\r\n    \"target\": \"adminUsername\"\r\n  }\r\n}"
    }
  ]
}

Root Cause

This issue occurs because the SQL Database server admin account has more than 20 characters. It is failing during the Orchestrator deployment in the Azure Marketplace.


Resolution

Reduce the SQL Server admin login account to 20 characters or less.

To ensure the username meets these requirements:
  • Check the Length: Ensure the username is 20 characters or less.
  • Avoid Empty Values: Make sure the username is not blank.
  • No Trailing Period: Verify that the username does not end with a period.