Unable to Access Flask API External Network on Azure Machine Learning Compute Instance
HSIANGYU.LIN 林相宇
0
Reputation points
I created a Compute instance in Machine Learning Studio and generated a public IP. Then, I created a service in a NOTEBOOK using the following code:
from flask import Flask, jsonify
@app.route('/test', methods=['GET'])
def test_api():
return jsonify({'message': 'API is working!'})
if name == 'main':
app.run(host='0.0.0.0', port=5000)
However, I cannot ping this IP from an external network. How can I access the API running on port 5000? Thank you.
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
Sign in to answer