Unable to provision the azure data factory resource with az cli on my ubuntu
Mohammad Moiz
0
Reputation points
Hi,
system info:
ubuntu: 16.04 WSL
azure-cli 2.36.0 *
core 2.36.0 *
telemetry 1.0.6 *
Extensions:
account 0.2.1
azure-firewall 0.14.5
azure-iot 0.20.0
databricks 0.8.0
datafactory 0.7.0
stream-analytics 0.1.2
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Python location '/opt/az/bin/python3'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.8.13 (default, Apr 22 2022, 04:53:07)
[GCC 5.4.0 20160609]
Legal docs and information: aka.ms/AzureCliLega
command to create adf:
az datafactory create \
--resource-group $rgName \
--factory-name $adfName
getting error:
The command requires the extension datafactory. Do you want to install it now? The command will continue to run after the extension is installed. (Y/n): Y
Run 'az config set extension.use_dynamic_install=yes_without_prompt' to allow installing extensions without prompt.
The command failed with an unexpected error. Here is the traceback:
cannot import name 'DeserializationError' from 'azure.core.exceptions' (/opt/az/lib/python3.8/site-packages/azure/core/exceptions.py)
Traceback (most recent call last):
File "/opt/az/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
raise ex
File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
File "/root/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 20, in cf_factory
return cf_datafactory_cl(cli_ctx).factories
File "/root/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 14, in cf_datafactory_cl
from azext_datafactory.vendored_sdks.datafactory import DataFactoryManagementClient
File "/root/.azure/cliextensions/datafactory/azext_datafactory/vendored_sdks/datafactory/__init__.py", line 9, in