На странице Функции Azure в Linux Preview я пытаюсь создать новое приложение предварительного просмотра python, используя:
az functionapp createpreviewapp -n MyApp -g MyResourceGroup -l "eastus" -s mystoragename --runtime python --is-linux
Это приводит к следующей ошибке:
__init__() takes 1 positional argument but 3 were given
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/knack/cli.py", line 197, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 369, in execute
six.reraise(*sys.exc_info())
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/six.py", line 693, in reraise
raise value
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 343, in execute
result = cmd(params)
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 182, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/Cellar/azure-cli/2.0.46/libexec/lib/python3.7/site-packages/azure/cli/core/__init__.py", line 437, in default_command_handler
result = op(**command_args)
File "/Users/mike.mahoney/.azure/cliextensions/functionapp/azext_functionapp/custom.py", line 82, in create_function
site_config.app_settings.append(NameValuePair('FUNCTIONS_EXTENSION_VERSION', '~2'))
TypeError: __init__() takes 1 positional argument but 3 were given
Я на Mac и установил последние инструменты Azure CLI (2.0.46), используя brew.