API with HTTPS

Andres Esteban 156 Reputation points
2024-01-15T16:08:27.25+00:00

I have created a model in Azure ML that can be consumed via API, however, the creation of this api is http, would there be a way to make it https?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,929 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 22,865 Reputation points MVP
    2024-01-15T16:17:47.0533333+00:00

    Hey Andres Esteban yup, you can totally make your Azure ML model API HTTPS-enabled for that extra layer of security. so when deploying your model as an API, just make sure to specify HTTPS during the deployment. If you're using Python with the Azure ML SDK, look below for how.

    pythonCopy code
    service = Model.deploy(workspace, name, models, inference_config, deployment_config)
    service.wait_for_deployment(show_output=True)
    print(service.scoring_uri)
    

    this deploys and also gives you the HTTPS scoring URI. Now, if you're using Azure API Management or have your model in a web app, remember to configure those to enforce HTTPS as well.
    If this helps kindly accept the answer thanks much.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andres Esteban 156 Reputation points
    2024-01-15T16:23:03.3233333+00:00

    Thank you very much. Just one last question, then the implementation and creation of the endpoint should be done via code and not automatically as Azure ML also offers? User's image

    Thank you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.