错误“参数 'Identity.type' 不能是 None。 ' 从 Azure CLI 创建 Kusto 集群时
Error 'Parameter 'Identity.type' can not be None. ' while creating a Kusto cluster from Azure CLI
我正在使用的命令:
az kusto cluster create --location "brazilsouth" --name "adxrrs" --sku name="Dev(No SLA)_Standard_D11_v2" capacity=1 tier="Basic" --resource-group adx-rg
输出:
Command group 'kusto' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Parameter 'Identity.type' can not be None.
我已经登录了,但不知道 'Identity.type' 是什么意思?
- 我的环境:
- OS: Ubuntu 20.04 焦点
- Azure-cli -v: 2.28.0
--调试输出:
Command group 'kusto' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=KustoManagementClient
msrest.exceptions: Parameter 'Identity.type' can not be None.
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/generated/custom.py", line 85, in kusto_cluster_create
parameters=parameters)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/util.py", line 646, in sdk_no_wait
return func(*args, **kwargs)
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py", line 223, in begin_create_or_update
**kwargs
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py", line 151, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'Cluster')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 628, in body
raise errors[0]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 250, in validate
Serializer.validate(value, debug_name, **self._validation.get(attr_name, {}))
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 730, in validate
raise ValidationError("required", name, True)
msrest.exceptions.ValidationError: Parameter 'Identity.type' can not be None.
cli.azure.cli.core.azclierror: Parameter 'Identity.type' can not be None.
az_command_data_logger: Parameter 'Identity.type' can not be None.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fb72d698400>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 0.255 seconds (init: 0.087, invoke: 0.168)
telemetry.save: Save telemetry record of length 3197 in cache
telemetry.check: Negative: The /home/rrs/.azure/telemetry.txt was modified at 2021-09-21 14:46:40.815964, which in less than 600.000000 s
这似乎是在以下位置报告的已知问题:
将标志 --type=None
添加到命令使其有效。
我正在使用的命令:
az kusto cluster create --location "brazilsouth" --name "adxrrs" --sku name="Dev(No SLA)_Standard_D11_v2" capacity=1 tier="Basic" --resource-group adx-rg
输出:
Command group 'kusto' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Parameter 'Identity.type' can not be None.
我已经登录了,但不知道 'Identity.type' 是什么意思?
- 我的环境:
- OS: Ubuntu 20.04 焦点
- Azure-cli -v: 2.28.0
--调试输出:
Command group 'kusto' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=KustoManagementClient
msrest.exceptions: Parameter 'Identity.type' can not be None.
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/generated/custom.py", line 85, in kusto_cluster_create
parameters=parameters)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/util.py", line 646, in sdk_no_wait
return func(*args, **kwargs)
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py", line 223, in begin_create_or_update
**kwargs
File "/home/rrs/.azure/cliextensions/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py", line 151, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'Cluster')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 628, in body
raise errors[0]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 250, in validate
Serializer.validate(value, debug_name, **self._validation.get(attr_name, {}))
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 730, in validate
raise ValidationError("required", name, True)
msrest.exceptions.ValidationError: Parameter 'Identity.type' can not be None.
cli.azure.cli.core.azclierror: Parameter 'Identity.type' can not be None.
az_command_data_logger: Parameter 'Identity.type' can not be None.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fb72d698400>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 0.255 seconds (init: 0.087, invoke: 0.168)
telemetry.save: Save telemetry record of length 3197 in cache
telemetry.check: Negative: The /home/rrs/.azure/telemetry.txt was modified at 2021-09-21 14:46:40.815964, which in less than 600.000000 s
这似乎是在以下位置报告的已知问题:
将标志 --type=None
添加到命令使其有效。