microsoft / az-deep-batch-score

Batch scoring deep learning models with AML
MIT License
21 stars 8 forks source link

notebook 02 storage account creation failure #15

Closed maxkazmsft closed 5 years ago

maxkazmsft commented 5 years ago

I get the following error in the second notebook at storage account creation - azure CLI version and error are below:

az --version azure-cli (2.0.55)

!az storage account create \

-n {storage_account_name} \

-g {resource_group} \

--query 'provisioningState'

APIVersion 2018-07-01 is not available Traceback (most recent call last): File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke cmd_result = self.invocation.execute(args) File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 328, in execute raise ex File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 386, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 379, in _run_job six.reraise(sys.exc_info()) File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/six.py", line 693, in reraise raise value File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 356, in _run_job result = cmd_copy(params) File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 171, in call return self.handler(args, **kwargs) File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/core/init.py", line 432, in default_command_handler client = client_factory(cmd.cli_ctx, command_args) if client_factory else None File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/cli/command_modules/storage/_client_factory.py", line 137, in cf_sa return storage_client_factory(cli_ctx).storage_accounts File "/home/maxkaz/anaconda3/envs/batchscoringdl_aml/lib/python3.6/site-packages/azure/mgmt/storage/storage_management_client.py", line 230, in storage_accounts raise NotImplementedError("APIVersion {} is not available".format(api_version)) NotImplementedError: APIVersion 2018-07-01 is not available

jiata commented 5 years ago

fixed in #16 turns out we need to explicitly call out the mgmt-storage library version