I am trying to follow the quickstart notebook (https://github.com/Azure/aml-real-time-ai/blob/master/notebooks/project-brainwave-quickstart.ipynb)
I have my azure ML workspace and I registered it locally. The workspace can be loaded.
The problem that I have is after registering the models(which is sucessfull, I can see the in my Azure workspace) the service cannot be published due the to "Response Code: 403"
![image](https://user-images.githubusercontent.com/18368509/58553150-724b3900-8214-11e9-9598-bb905dfaf406.png)
The exception I get:
WebserviceException: Received bad response from Model Management Service:
Response Code: 403
Headers: {'Date': 'Wed, 29 May 2019 11:13:37 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'Request-Context': 'appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d', 'api-supported-versions': '1.0, 2018-03-01-preview, 2018-11-19', 'x-ms-client-request-id': 'e2eb89ddcd4a423b81eba57d2cf9ee90', 'x-ms-client-session-id': '', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'Content-Encoding': 'gzip'}
Content: b'{"code":"Forbidden","statusCode":403,"message":"Forbidden","details":[{"code":"Forbidden","message":"AI Fabric returned Bad Request. Reason: "}]}'
For more information on this error, contact Microsoft Support or get help on the Azure ML forum (https://aka.ms/aml-forum) with the request ID .
The trace:
Creating image
Image creation operation finished for image imagenet-infer:10, operation "Succeeded"
Creating service
WebserviceException Traceback (most recent call last)
in
6 try:
----> 7 service = Webservice(ws, service_name)
8 except WebserviceException:
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/core/webservice/webservice.py in new(cls, workspace, name)
82 raise WebserviceException('WebserviceNotFound: Webservice with name {} not found in provided '
---> 83 'workspace'.format(name))
84 else:
WebserviceException: WebserviceNotFound: Webservice with name imagenet-infer not found in provided workspace
During handling of the above exception, another exception occurred:
HTTPError Traceback (most recent call last)
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/core/webservice/webservice.py in _deploy_webservice(workspace, name, webservice_payload, webservice_class)
372 resp = requests.post(mms_endpoint, params=params, headers=headers, json=webservice_payload)
--> 373 resp.raise_for_status()
374 except requests.exceptions.HTTPError:
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/requests/models.py in raise_for_status(self)
939 if http_error_msg:
--> 940 raise HTTPError(http_error_msg, response=self)
941
HTTPError: 403 Client Error: Forbidden for url: https://eastus2.modelmanagement.azureml.net/api/subscriptions/*****my subscription id*******/resourceGroups/demo-rg/providers/Microsoft.MachineLearningServices/workspaces/demo/services?api-version=2018-11-19
During handling of the above exception, another exception occurred:
WebserviceException Traceback (most recent call last)
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/contrib/brainwave/brainwave_webservice.py in _deploy(workspace, name, image, deployment_config)
118 try:
--> 119 return Webservice._deploy_webservice(workspace, name, create_payload, BrainwaveWebservice)
120 except WebserviceException as e:
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/core/webservice/webservice.py in _deploy_webservice(workspace, name, webservice_payload, webservice_class)
378 'Content: {}'.format(resp.status_code, resp.headers, resp.content),
--> 379 resp.status_code)
380 if resp.status_code != 202:
WebserviceException: Received bad response from Model Management Service:
Response Code: 403
Headers: {'Date': 'Wed, 29 May 2019 11:13:37 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'Request-Context': 'appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d', 'api-supported-versions': '1.0, 2018-03-01-preview, 2018-11-19', 'x-ms-client-request-id': 'e2eb89ddcd4a423b81eba57d2cf9ee90', 'x-ms-client-session-id': '', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'Content-Encoding': 'gzip'}
Content: b'{"code":"Forbidden","statusCode":403,"message":"Forbidden","details":[{"code":"Forbidden","message":"AI Fabric returned Bad Request. Reason: "}]}'
During handling of the above exception, another exception occurred:
WebserviceException Traceback (most recent call last)
in
9 image_config = BrainwaveImage.image_configuration()
10 deployment_config = BrainwaveWebservice.deploy_configuration()
---> 11 service = Webservice.deploy_from_model(ws, service_name, [registered_model], image_config, deployment_config)
12 service.wait_for_deployment(True)
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/core/webservice/webservice.py in deploy_from_model(workspace, name, models, image_config, deployment_config, deployment_target)
247 image.image_build_log_uri,
248 image.generated_dockerfile_uri))
--> 249 return Webservice.deploy_from_image(workspace, name, image, deployment_config, deployment_target)
250
251 @staticmethod
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/core/webservice/webservice.py in deploy_from_image(workspace, name, image, deployment_config, deployment_target)
279 if child._webservice_type == ACI_WEBSERVICE_TYPE:
280 return child._deploy(workspace, name, image, deployment_config)
--> 281 return deployment_config._webservice_type._deploy(workspace, name, image, deployment_config)
282
283 else:
~/Programs/Anaconda/envs/tf-gpu/lib/python3.6/site-packages/azureml/contrib/brainwave/brainwave_webservice.py in _deploy(workspace, name, image, deployment_config)
131 .format(error_message, request_id[0])
132 if error_message:
--> 133 raise WebserviceException(e.message + "\n\n" + error_message)
134 raise
135
OS: Ubuntu 18.04.2 LTS
Language: Python 3.7
Name: tensorflow
Version: 1.10.1
Name: azureml-sdk
Version: 1.0.39