I created a ARM template for automatic AKS creation and/or updates. I generated a RSA public key using the Azure bash command line and entered it in the ARM template. I use the template in an Azure DevOps pipeline. Deployment failes. with the error message:

[error]InvalidParameter: Provisioning of resource(s) for container service aks-openfaas-test-0619 in resource group rg-openfaas--test-0619 failed. Message: {
  "code": "InvalidParameter",
  "message": "The value of parameter linuxProfile.ssh.publicKeys.keyData is invalid. Please see https://aka.ms/aks-naming-rules for more details.",
  "target": "linuxProfile.ssh.publicKeys.keyData"
 }. Details:  undefined

I followed the Microsoft instruction on https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys.

What am I doing wrong?

  • Please add more information to help with reproducibility for others. You might follow this GitHub issue addressing a similar error message. Chances are you are facing a similar problem. – Sascha Gottfried Jun 7 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.