I am currently working with Azure Machine Learning. Doing this I encountered a problem when trying to access the images associated with the AML workspace I am working on. It seems, that the method is trying to get access to a model that was already deleted from the model registration by me some time ago. I deleted the model in the GUI of AML on the "models" tab.
Calling:
ws.images
Produces:
Received bad response from Model Management Service:
Response Code: 404
Headers: {'Date': 'Thu, 19 Nov 2020 16:56:10 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'x-ms-client-request-id': '5b1ae4fc52324429b241197be3f455a3', 'x-ms-client-session-id': '', 'api-deprecated-versions': '1.0, 2018-03-01-preview, 2018-11-19', 'X-Content-Type-Options': 'nosniff', 'x-request-time': '2.912', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'Content-Encoding': 'gzip'}
Content: b'{"code":"NotFound","statusCode":404,"message":"The specified resource was not found.","details":[{"code":"NoSuchModelRegistered","message":"One or more models are not registered in Account Subscription: da80dbc4-7dd6-4833-b66e-f6dbbbe42ece, ResourceGroup: dat-q-rg, Workspace: dat-q-aml-01. Unregistered modelIds sklearn_regression_model.pkl:13"}],"correlation":{"RequestId":"5b1ae4fc52324429b241197be3f455a3"}}'
Traceback (most recent call last):
File "C:\Users\d91755\AppData\Local\Programs\Python\Python39\lib\site-packages\azureml\core\image\image.py", line 577, in list
resp.raise_for_status()
File "C:\Users\d91755\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://westeurope.modelmanagement.azureml.net/modelmanagement/v1.0/subscriptions/da80dbc4-7dd6-4833-b66e-f6dbbbe42ece/resourceGroups/dat-q-rg/providers/Microsoft.MachineLearningServices/workspaces/dat-q-aml-01/images?expand=true
The model sklearn_regression_model.pkl:13 existed and was registered in AML but was deleted manually by me in AML. How come calling the images method has still knowledge of this model?
How can I fix this to be able to call the images method again?
In case this is a bug, where would I report it?