MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.1k stars 21.15k forks source link

Issue with the use of result() function #105869

Open LazaUK opened 1 year ago

LazaUK commented 1 year ago

[Enter feedback here] When following the instruction on https://learn.microsoft.com/en-us/azure/machine-learning/how-to-debug-managed-online-endpoints-visual-studio-code?tabs=python#launch-development-container, last block returns an error,

This is the part of the code deployment = ml_client.online_deployments.begin_create_or_update( deployment, local=True, vscode_debug=True ).result()

And this is an error: AttributeError: 'ManagedOnlineDeployment' object has no attribute 'result'

As per the documentation, it indeed should return LROPoller class object, but seems to be a bug, as the function returns ManagedOnlineDeployment class object. Interestingly enough, other Azure ML doc pages (e.g., https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-online-endpoints?tabs=python#deploy-the-model-locally) have the same code provided without .result() function call. So, either this page was not updated or it's a new bug.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AjayBathini-MSFT commented 1 year ago

@LazaUK Thanks for your feedback! We will investigate and update as appropriate.

RamanathanChinnappan-MSFT commented 1 year ago

@LazaUK I've delegated this to @dem108 , a content author, to review and share their valuable insights.

LazaUK commented 1 year ago

Sure, thank you very much for the update, Ramanathan.

dem108 commented 1 year ago

Thanks @LazaUK sorry to take longer than we wanted - please allow us to review this and fix.

LazaUK commented 1 year ago

No worries, thank you @dem108