AKS Cluster provisioning failed - "CreateVMSSAgentPoolFailed"

KK1969 311 Reputation points
2023-10-11T11:28:36.7466667+00:00

While provisioning the AKS Cluster (Node pool with 3 nodes - autoscale enabled), I am getting this below error. Please suggest potential resolution for the same.

Code="CreateVMSSAgentPoolFailed" Message="Unable to establish outbound connection from agents, please see https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/error-code-outboundconnfailvmextensionerror and https://aka.ms/aks-required-ports-and-addresses for more information. Details: Category: ClientError; Code: VMExtensionProvisioningError; SubCode: OutboundConnFailVMExtensionError; Message: Unable to establish outbound connection from agents, please see https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/error-code-outboundconnfailvmextensionerror and https://aka.ms/aks-required-ports-and-addresses for more information. Details: instance 0 has extension error details : {vmssCSE error messages : {vmssCSE exit status=50 .......

InnerMessage: ; Dependency: Microsoft.Compute/VirtualMachineScaleSet; AKSTeam: ; Retriable: false"

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.
1,867 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
348 questions
{count} votes

2 answers

Sort by: Most helpful
  1. mutaz-msft 2,266 Reputation points Microsoft Employee
    2023-10-11T11:43:33.05+00:00
    2 people found this answer helpful.

  2. KK1969 311 Reputation points
    2023-10-12T17:03:34.2566667+00:00

    Yes. both NSG & Route table are already attached to the Subnet. I got the issue/resolution...

    It is about the AKS nodes Subnet which is supposed to be attached to a NAT gateway (which is associated with a Public IP) to have the outbound connectivity. Reference: https://learn.microsoft.com/en-us/azure/aks/egress-outboundtype#outbound-type-of-userdefinedrouting

    Thanks for the quick responses.

    1 person found this answer helpful.
    0 comments No comments