Can I add OpenAPI specification to a webservice deployed with AzureML in AKS?

Davide Fiocco 31 Reputation points
2020-09-23T21:40:31.89+00:00

I'd like to deploy a machine learning service using AzureML on AKS. I also need to add some OpenAPI specification for it.

Features in https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-azure-kubernetes-service?tabs=python are neat, but that of having API docs/swagger for the webservice seems missing.

Having some documentation is useful especially if the model takes in input several features of different type.

To overcome this, I currently get models trained in AzureML and include them in Docker containers that use the python FastAPI library to build the API and OpenAPI/Swagger specs, and those are deployed on some host.

Can I do something equivalent to this with AKS in AzureML instead? If so, how?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,630 questions
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,902 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 42,986 Reputation points Microsoft Employee
    2020-09-24T06:54:05.547+00:00

    @Davide Fiocco The deployments of Azure ML provide a swagger specification URI that can be used directly. The documentation of this is available here. You can print your swagger_uri of the web service and check if it confirms with the specifications you are creating currently.

    If the above response helps, please accept the response as answer. Thanks!!

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful