I had successfully deployed web api on aks but I am not able to route to action. Its calling only get method .

Snehalata Thorat 1 Reputation point
2022-05-12T12:26:30.97+00:00

I had successfully deployed web api on aks but I am not able to route to action. Its calling only. Please provide solution for this.

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,853 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,131 Reputation points Microsoft Employee
    2022-05-13T05:20:00.713+00:00

    Hello @Snehalata Thorat ,
    Can you let us know any documents or sequence of steps which you followed ? Did you use ingress to route the traffic ?
    In general when we build any .Net WebAPI solution and execute locally we have access to GET operations which are annotated with:
    [ApiController]
    [Route("[controller]")]

    Kindly let us know the detailed sequence of steps which you followed so that we can assist you better.

    Have a look at the below documentation and corresponding links of step by step deployment using ingress controller:
    https://lemtirisalah.com/deploy-asp-net-5-webapi-to-azure-kubernetes-service-aks-with-https-ingress-controller/

    After deploying in AKS try to expose the application via Load Balancer Service and then try to use tool like Postman to perform the Get/POST operations
    for example once you got the LB IP
    Using Postman:
    http://lbip:port/weatherforecast
    Click SEND Button
    You will get the results

    0 comments No comments