Hello Ufedo Omale,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you always get ResourceNotFoundError error, even when you have performed all the necessary setup.
There are many potential causes of the ResourceNotFoundError, including but not limited to:
- Workspace misnaming
- Soft-deleted workspace
- Permissions issues
- Deployment path errors
- Before you go deeper, check permissions to be sure your identity has Contributor or Owner access to:
- The workspace
- The resource group
- The subscription
- Verify workspace existence and if not found, check Recently Deleted Workspaces: From - Azure Portal > Azure ML > Recently Deleted - https://learn.microsoft.com/en-us/azure/machine-learning/concept-soft-delete?view=azureml-api-2
- If none of the above. Go to Azure Portal > Azure ML > Recently Deleted > Select Workspace > Click Recover - https://learn.microsoft.com/en-us/azure/machine-learning/concept-soft-delete?view=azureml-api-2
- Try to view model registration guide - as in https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-models?view=azureml-api-2
- Also, if above not working. Make sure the resource path in your code matches the actual Azure resource hierarchy:
/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.MachineLearningServices/workspaces/<workspace-name>
Check this reference - https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-parent-resource
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.