AKS cluster creation validation is failing while trying ARM template

Azizuddin Khan 20 Reputation points
2024-09-05T09:38:04.1266667+00:00

Hi,

I have created an AKS through portal and then downloaded the template post successful AKS creation.

Now I have deleted the AKS and trying to create the same using ARM template however resource validation is failing with error as below:

{
  "code": "InvalidTemplateDeployment",
  "details": [
    {
      "code": "InvalidParameter",
      "message": "Preflight validation check for resource(s) for container service dev-aks in resource group dso-poc-RG failed. Message: The value of parameter windowsProfile.adminPassword is invalid. Please see https://aka.ms/aks-naming-rules for more details.. Details: "
    }
  ],
  "message": "The template deployment 'Microsoft.Template-20240905144904' is not valid according to the validation procedure. The tracking id is 'fe672ea4-ef03-4427-9bbd-93beeab4c9ed'. See inner errors for details."
}

Can anyone help me out here?

Thanks & Regards

Azizuddin.Khan@thepsi.com

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,075 questions
{count} votes

Accepted answer
  1. Akshay kumar Mandha 385 Reputation points Microsoft Vendor
    2024-09-05T15:47:28.8166667+00:00

    Hi Azizuddin Khan,
    Thank you for your patience while we are reviewing the issue

    Based upon your query, When you are redeploying an AKS cluster using a previously downloaded ARM template, and deleted the original one you will be face some potential issues related to parameter values, as you see in the error below:
    "The value of parameter windowsProfile.adminPassword is invalid."

    Because the downloaded template includes sensitive information such as passwords (windowsProfile.adminPassword), ensure these are updated or handled securely. Even if the password was valid before, It must still meet current Azure password policies. If the password does not comply with the latest complexity requirements, deployment will fail. Please check the adminPassword parameter needs to be updated to a new password that meets Azure’s complexity requirements while you deploying with ARM template Please refer this document Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using an ARM template

    If an answer has been helpful, please consider accepting the answer  and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community.
    Thank you..!User's image

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.