Share via

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
0 comments No comments

Answer accepted by question author

Azar 31,720 Reputation points MVP Volunteer Moderator
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.

Was this answer helpful?

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

    Was this answer helpful?

    0 comments No comments

Your answer

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