Unable to serialize value: '3650:00:00:00' as type: 'duration'., ISO8601Error: Unable to parse duration string '3650:00:00:00'Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 697, in serialize_data
return self.serialize_type[data_type](data, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 974, in serialize_duration
attr = isodate.parse_duration(attr)
File "/opt/az/lib/python3.6/site-packages/isodate/isoduration.py", line 104, in parse_duration
raise ISO8601Error("Unable to parse duration string %r" % datestring)
isodate.isoerror.ISO8601Error: Unable to parse duration string '3650:00:00:00'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 326, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 384, 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 377, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 354, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 145, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 451, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/kusto/custom.py", line 152, in database_create
operation_config=kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/util.py", line 337, in sdk_no_wait
return func(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/kusto/operations/databases_operations.py", line 337, in create_or_update
**operation_config
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/kusto/operations/databases_operations.py", line 279, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'Database')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 580, in body
return self._serialize(data, data_type, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 452, in _serialize
target_obj, data_type, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 715, in serialize_data
return self._serialize(data, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 489, in _serialize
new_attr = self.serialize_data(orig_attr, attr_desc['type'], **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 713, in serialize_data
SerializationError, msg.format(data, data_type), err)
File "/opt/az/lib/python3.6/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 697, in serialize_data
return self.serialize_type[data_type](data, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 974, in serialize_duration
attr = isodate.parse_duration(attr)
File "/opt/az/lib/python3.6/site-packages/isodate/isoduration.py", line 104, in parse_duration
raise ISO8601Error("Unable to parse duration string %r" % datestring)
msrest.exceptions.SerializationError: Unable to serialize value: '3650:00:00:00' as type: 'duration'., ISO8601Error: Unable to parse duration string '3650:00:00:00'
To Reproduce:
Steps to reproduce the behavior. Note: Command arguments have been redacted.
az kusto database create --cluster-name mycluster --name dbname--resource-group sample-rg --soft-delete-period 3650:00:00:00 --hot-cache-period 3650:00:00:00
Errors:
:open_mouth:
To Reproduce:
Steps to reproduce the behavior. Note: Command arguments have been redacted.
Fill in additional info here
Run: az kusto database create --cluster-name {} --name {} --resource-group {} --soft-delete-period {} --hot-cache-period {}
Expected Behavior
A clear and concise description of what you expected to happen.
Environment Summary
Additional Context
Add any other context about the problem here.