az ml datastore delete is broken
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.
- ID: 27bfd14b-bddd-771f-1364-c52a991b75f0
- Version Independent ID: e0750d23-f2a0-7364-e6dc-34ffa51503d4
- Content: az ml datastore
- Content Source: latest/docs-ref-autogen/ml/datastore.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
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.
- ID: 27bfd14b-bddd-771f-1364-c52a991b75f0
- Version Independent ID: e0750d23-f2a0-7364-e6dc-34ffa51503d4
- Content: az ml datastore
- Content Source: latest/docs-ref-autogen/ml/datastore.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
| Author: | afogarty85 |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
route to service team
- @@.> 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.
Hi @afogarty85, could you please run az --version and let us know the version of the ml extension you have installed?
andrew@Azure:~$ az --version
azure-cli 2.29.0 *
core 2.29.0 *
telemetry 1.0.6
Extensions:
azure-cli-ml 1.29.0
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
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!