azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Need add limitation of custom subnet for node pool

Open mintLiquor opened this issue 1 year ago • 2 comments

[Enter feedback here]

I followed the instructions to create a new node pool and allocate a newly created subnet to it.

My command was "az aks nodepool add -g --cluster-name -n --vnet-subnet-id " referring to the page.

However, the error went like "Cannot use a custom subnet because agent nodepool1 is using a managed subnet. Please omit the vnetSubnetID parameter from the request". It means all of my node pools should use the same kind of subnet, managed or custom, not mixed. This limitation was not mentioned in the document, and it affected my work.

Hope this kinda limitation be added into the document to prevent further mistakes.


Document Details

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

mintLiquor avatar Apr 29 '24 02:04 mintLiquor

@mintLiquor Thanks for your feedback! We will investigate and update as appropriate.

PesalaPavan avatar Apr 29 '24 04:04 PesalaPavan

#reassign:schaffererin

schaffererin avatar Apr 29 '24 22:04 schaffererin

Hi, @mintLiquor! Thanks for leaving your feedback here. I've not come across that error and was unable to find any results through search. Could you please share a bit more concrete information so I can try to repro the issue on my end? Thanks!

schaffererin avatar Apr 30 '24 17:04 schaffererin

@schaffererin Sorry for the late response. I was thinking whether I could customize the address space for my node pool, so I added new address space in my vnet, then created a new subnet based on this space. After that, I created a new node pool with "--vnet-subnet-id" of that newly created subnet, and failed. You may follow my steps and give it a try. image

mintLiquor avatar May 08 '24 01:05 mintLiquor