Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

notebook 02 storage account creation failure #15

Closed
maxkazmsft opened this issue Jan 29, 2019 · 1 comment
Closed

notebook 02 storage account creation failure #15

maxkazmsft opened this issue Jan 29, 2019 · 1 comment

Comments

@maxkazmsft
Copy link

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
Copy link
Contributor

jiata commented Jan 30, 2019

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

@jiata jiata closed this as completed Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants