How to solve LB issue with error code " SubscriptionNotRegisteredForFeature" (SLBAllowAdminStateChangeForConnectionDraining)

Olha Tokarieva 20 Reputation points
2023-09-19T11:44:20.56+00:00

Hello everyone!

I have provisioned an aks cluster using terraform. I did not specify any code for virtual network or subnets, so it was created automatically and the setting seem to be correct.

After cluster provisioning I created deployment and service resourced with kubectl apply -f. Service.yml file contains the following. The service is running and Eternal IP was assigned

nodejsdemo-app   LoadBalancer   10.0.243.247   40.76.134.22   80:32525/TCP   19h

But I cannot reach it with this IP address.

Activity Log is showing the following:

  • Error codeSubscriptionNotRegisteredForFeature
  • MessageSubscription subscr ID is not registered for feature Microsoft.Network/SLBAllowAdminStateChangeForConnectionDraining required to carry out the requested operation.

Could you kindly advise on that? I am not able to find such a feature under Preview features within my Subscription neither can I google the feature by its name.

apiVersion: v1
kind: Service
metadata:
    name: nodejsdemo-app
spec:
    type: LoadBalancer
    ports:
    - port: 80 
    selector:
        app: nodejsdemo-app
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,961 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
420 questions
{count} votes

Accepted answer
  1. mutaz-msft 2,341 Reputation points Microsoft Employee
    2023-09-19T11:57:57.4+00:00

    Hi @Olha Tokarieva,
    can you share the deployment YAML as well, and verify if your application is listening on port 80 as the service is using port 80, if your application is using different port then you need to use targetPort in your service YAML.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful