Azure-docs: add nodepool have error

Created on 7 May 2020  ·  19Comments  ·  Source: MicrosoftDocs/azure-docs

@yellow456434 commented on Thu May 07 2020

when I type this command
az aks nodepool add \
--resource-group test \
--cluster-name testAKS \
--os-type Windows \
--name npwin \
--node-count 1 \
--kubernetes-version 1.15.10

will show to error
Operation failed with status: 'Bad Request'. Details: Windows profile definition is missing for the cluster.
how to solve?


文件詳細資料

請勿編輯此區段。 這是 docs.microsoft.com ➟ GitHub 問題連結的必要項。


@srvbpigh commented on Thu May 07 2020

Hello, @yellow456434

Thank you for your feedback.

We are actively reviewing your comments and will get back to you soon.

Kind regards,
Microsoft DOCS International Team


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author container-servicsvc doc-enhancement triaged

All 19 comments

@yellow456434
Thanks for your Question! We are currently investigating and will get back on this.

@yellow456434 Can you please share the az cli version on which you are trying this tutorial.
We will reproduce in our lab and will get back on this. Can you try to run with --debug to the end of the command and share the output.

az aks nodepool add --resource-group test --cluster-name testAKS --os-type Windows --name npwin --node-count 1 --kubernetes-version 1.15.10 --debug

version show below attachment


寄件者: VikasPullagura-MSFT notifications@github.com
寄件日期: 2020年5月11日 下午 09:46
收件者: MicrosoftDocs/azure-docs azure-docs@noreply.github.com
副本: yellow456434 yellow456434@hotmail.com; Mention mention@noreply.github.com
主旨: Re: [MicrosoftDocs/azure-docs] add nodepool have error (#54362)

@yellow456434https://github.com/yellow456434 Can you please share the az cli version on which you are trying this tutorial.
We will reproduce in our lab and will get back on this.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/54362#issuecomment-626711539, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6XKUCWY34SPFGFCVKPZYDRQ76R5ANCNFSM4M3TEP5Q.

@yellow456434 I don't see any attachments, requesting you to please add the details on the GitHub.
Also, once you run the --debug based on the error shared, the value for this properties.windowsProfile in the api call is having some issue. Please check what value is going in this property from the --debug output.

This step does not provide the windows-admin-user when creating the cluster.
https://docs.microsoft.com/en-us/azure/aks/windows-container-cli#create-an-aks-cluster
According to this issue the cluster needs to get a windows profile at creationg time, so the above step should be changed.
https://github.com/MicrosoftDocs/azure-docs/issues/34790

@yellow456434 Any update on the issue?

@VikasPullagura-MSFT sorry, I reupload attachment to you
截圖 2020-05-12 上午10 39 02

@pdebruin ok, I know
could I add like windows-admin-user cmd when I create cluster on Asure potral now?

I used to create cluster by azure portal,
and I didn't see any place to add windows-admin-user infomation.
And I check my already created cluster detail by azure portal, windowsProfile is null.

@pdebruin Thanks for pointing this out.

@mlearned can you please check on this document update.

@yellow456434 Can you please try creating the cluster with below options

    --windows-admin-password $PASSWORD_WIN \
    --windows-admin-username azureuser \
    --enable-vmss \
    --network-plugin azure

and see if the windows profile has the required details with az aks show as mentioned in the linked issue.

@yellow456434 you can use azure portal to create a k8s with Windows agent pools. And you also can use azure-cli to create a k8s without specifying username and password for Windows and then add Windows agent pools later. But it requires that you specify below parameters:

  1. --vm-set-type VirtualMachineScaleSets
  2. --network-plugin azure
    NOTE: When both of above parameters are specified in creating the cluster, the cluster can support adding Windows agent pools.

@AbelHu Thank you answer!
So I already created k8s but i didn't add two parameter,
I can't add two parameter later(mean this cluster can't use window agent pool permanent).
I only recreate k8s, right?

@yellow456434 yes, you need to recreate k8s. Suggest to create with specifying username and password for Windows. Although AKS can generate username and password automatically, you can not get the auto-generated password.

I have assigned the issue to content author for updating the document with windows details on the cluster creation cli command.

@AbelHu thank you.
Another question.
I didn't seen set the --windows-admin-password and --windows-admin-username place on the azure portal.
dose it only can create by cli-cmd way ?

Yes. You only can set them by azure-cli

Best Regards,
Abel Hu


发件人: yellow456434 notifications@github.com
发送时间: Tuesday, May 19, 2020 5:39:57 PM
收件人: MicrosoftDocs/azure-docs azure-docs@noreply.github.com
抄送: Abel Hu Chou.Hu@microsoft.com; Mention mention@noreply.github.com
主题: Re: [MicrosoftDocs/azure-docs] add nodepool have error (#54362)

@AbelHuhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAbelHu&data=02%7C01%7CChou.Hu%40microsoft.com%7Cb050150897ec4d1e17d308d7fbd89836%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637254780013882994&sdata=Y6JMq7g0s%2BpKt6VCBbbs3DJeJEbBHYSVM16QNwtONjc%3D&reserved=0 thank you.
Another question.
I didn't seen set the --windows-admin-password and --windows-admin-username place on the azure portal.
dose it only can create by cli-cmd way ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F54362%23issuecomment-630709136&data=02%7C01%7CChou.Hu%40microsoft.com%7Cb050150897ec4d1e17d308d7fbd89836%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637254780013882994&sdata=Q%2FiO3N60fDVoTJXQPSvL7S%2BuSYVimqJOiP0bF7b8XJU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABQ6OO53QVYW75D47NO4DQ3RSJHW3ANCNFSM4M3TEP5Q&data=02%7C01%7CChou.Hu%40microsoft.com%7Cb050150897ec4d1e17d308d7fbd89836%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637254780013892988&sdata=Qiv7Br%2BKClUtkB7JJMn5BSnDkUkFGMnof2K98DSkSr8%3D&reserved=0.

Ok I know.
Thank You All

Thank you @CeciAc for the feedback.

The article contains the correct parameters for creating a cluster.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monteledwards picture monteledwards  ·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  ·  3Comments

Ponant picture Ponant  ·  3Comments

spottedmahn picture spottedmahn  ·  3Comments

ianpowell2017 picture ianpowell2017  ·  3Comments