I created a subnet in a vNet. I want to use the subnet when creating an AKS cluster. But I received a permission error below.
If it isn’t allowed, how can I simulate a real environment?
This subnet does not have the necessary role assignment for this cluster and you do not have the necessary permissions to perform the “Microsoft.Authorization/roleAssignments/write” action to add one. Choose another subnet or contact your subscription owner."
Thanks for replying.
I’m sorry. I probably didn’t describe it clearly.
I can create an Azure sandbox and log in to it on Kodekloud.com.
The problem is that I don’t have permission to create an AKS cluster in a private subnet that I create.
Please refer to the screenshot.
The short answer is that many of the limitations here are by design. Please refer to the document that Raymond mentions, which will tell you what we do allow for create an AKS cluster.