Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
381 stars 1.2k forks source link

ML Server Administration utility not working on fresh DSVM #132

Open okhoma opened 6 years ago

okhoma commented 6 years ago

Extension name (the extension in question)

azure-ml-admin-cli

Description of issue (in as much detail as possible)

New Windows 2016 DSVM comes with ML Server 9.3.0 preinstalled. However, running Administration Utils immediately after installation results in an error:

C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin>cd "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin" && az ml admin --help
az: error: argument _command_package: invalid choice: ml
usage: az [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv}]
          [--query JMESPATH]
          {acr,acs,aks,advisor,webapp,appservice,functionapp,backup,batch,batchai,billing,cdn,cloud,cognitiveservices,configure,consumption,container,cosmosdb,dla,dls,eventgrid,extension,feedback,find,interactive,iot,keyvault,lab,monitor,network,login,logout,account,mysql,postgres,redis,reservations,group,resource,provider,feature,tag,policy,lock,managedapp,role,ad,sf,sql,storage,disk,identity,image,snapshot,vm,vmss}
          ...

VM version: microsoft-ads:windows-data-science-vm:windows2016:18.02.00


C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin>az --version azure-cli (2.0.27)

acr (2.0.21) acs (2.0.26) advisor (0.1.2) appservice (0.1.26) backup (1.0.6) batch (3.1.10) batchai (0.1.5) billing (0.1.7) cdn (0.0.13) cloud (2.0.12) cognitiveservices (0.1.10) command-modules-nspkg (2.0.1) configure (2.0.14) consumption (0.2.1) container (0.1.18) core (2.0.27) cosmosdb (0.1.19) dla (0.0.18) dls (0.0.19) eventgrid (0.1.10) extension (0.0.9) feedback (2.1.0) find (0.2.8) interactive (0.3.16) iot (0.1.17) keyvault (2.0.18) lab (0.0.17) monitor (0.1.2) network (2.0.23) nspkg (3.0.1) profile (2.0.19) rdbms (0.0.12) redis (0.2.11) reservations (0.1.1) resource (2.0.23) role (2.0.19) servicefabric (0.0.10) sql (2.0.21) storage (2.0.25) vm (2.0.26)

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\labdsvm-admin.azure\cliextensions'

Python (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

okhoma commented 6 years ago

It seems that this extension is installed by default to user's .azure folder and other users cannot use it unless they reinstall ML Server, which is not convenient. In case of DSVM, extensions must have been installed to user .azure folder who was creating the disk image and after instantiation, users can no longer use it.

wilsonmar commented 6 years ago

@okhoma when I run az ml --help the response is: az: error: argument _command_package: invalid choice: ml Did I do something wrong or Is there a workaround to this?

okhoma commented 6 years ago

@wilsonmar Check out https://social.technet.microsoft.com/Forums/en-US/8d94bfec-9bd0-4ec5-8422-6ed8c20b0347/how-to-install-azuremladmincli-extensions-for-other-user-without-reinstalling-ml-server?forum=MicrosoftR I don't know if your problem is the same, but the easiest solution is to reinstall ML Server or get .azureml/cliextensions folder from the user who installed it.