azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az ml datastore delete is broken

Open afogarty85 opened this issue 5 years ago • 7 comments

I am trying to delete a datastore tied to AzureML. Following the guide here: https://docs.microsoft.com/en-us/cli/azure/ml/datastore?view=azure-cli-latest#az_ml_datastore_delete

This command is unrecognized:

andrew@Azure:~$ az ml datastore delete
'delete' is misspelled or not recognized by the system

Document Details

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

afogarty85 avatar Oct 21 '21 14:10 afogarty85

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

Issue Details

I am trying to delete a datastore tied to AzureML. Following the guide here: https://docs.microsoft.com/en-us/cli/azure/ml/datastore?view=azure-cli-latest#az_ml_datastore_delete

This command is unrecognized:

andrew@Azure:~$ az ml datastore delete
'delete' is misspelled or not recognized by the system

Document Details

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

Author: afogarty85
Assignees: -
Labels:

Service Attention, Machine Learning, customer-reported

Milestone: -

ghost avatar Oct 21 '21 22:10 ghost

route to service team

yonzhan avatar Oct 21 '21 22:10 yonzhan

  • @@.> and @@.> as current DRIs.

From: yonzhan @.> Sent: Thursday, October 21, 2021 3:58 PM To: Azure/azure-cli @.> Cc: azureml-github @.>; Mention @.> Subject: Re: [Azure/azure-cli] az ml datastore delete is broken (Issue #19966)

route to service team

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F19966%23issuecomment-949061737&data=04%7C01%7Cpaulsh%40microsoft.com%7C241c00ab42204c34aa1208d994e63dc9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637704538895185005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=iZF8g5Fq%2BkEnnIqo4SqK2PsNZEOkSbT6N%2BenEN73c8g%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOVYYXRQDIAIRBW26PEKBTTUICLHZANCNFSM5GOIPEPA&data=04%7C01%7Cpaulsh%40microsoft.com%7C241c00ab42204c34aa1208d994e63dc9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637704538895185005%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k3hSAOEmUr1SPCYAKSzwwRmZg9tm9Tf33Gp5p%2F1eBnw%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cpaulsh%40microsoft.com%7C241c00ab42204c34aa1208d994e63dc9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637704538895194999%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=moM591kZ3s8o34HrrVz19MlNyIYHQLIJiyBN%2BzpInsU%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cpaulsh%40microsoft.com%7C241c00ab42204c34aa1208d994e63dc9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637704538895204989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wY7n3UiSpHq2bnTE3MCwCzRGA2%2B%2BPqaGiIIpy8zlJ80%3D&reserved=0.

azureml-github avatar Oct 25 '21 20:10 azureml-github

Hi @afogarty85, could you please run az --version and let us know the version of the ml extension you have installed?

needuv avatar Oct 25 '21 20:10 needuv

andrew@Azure:~$ az --version
azure-cli                         2.29.0 *

core                              2.29.0 *
telemetry                          1.0.6

Extensions:
azure-cli-ml                      1.29.0

afogarty85 avatar Oct 25 '21 21:10 afogarty85

The command you linked will only work with the v2 ml CLI extension (the extension is named just ml and instructions on downloading here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-cli). It will will not work with the v1 CLI extension (i.e. azure-cli-ml), which is what you have currently. You will need to uninstall the v1 CLI extension and install the v2 CLI in order to use the az ml datastore delete command. Note that the v2 ml CLI extension is still in preview.

The command equivalent to az ml datastore delete in the v1 CLI extension would be az ml datastore detach: https://docs.microsoft.com/en-us/cli/azure/ml(v1)/datastore?view=azure-cli-latest#az_ml_v1__datastore_detach. This should work for you with the current CLI extension you have installed

needuv avatar Oct 25 '21 22:10 needuv

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Apr 29 '22 14:04 ghost