Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error attempting to update a log-analytics export #17532

Closed
NetworkAdministratorsALI opened this issue Mar 31, 2021 · 5 comments · Fixed by #18374
Closed

Error attempting to update a log-analytics export #17532

NetworkAdministratorsALI opened this issue Mar 31, 2021 · 5 comments · Fixed by #18374
Assignees
Labels
Monitor az monitor Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@NetworkAdministratorsALI

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az monitor log-analytics workspace data-export update

Errors:

Cannot deserialize content-type: text/plain
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 233, in invoke
...
site-packages/msrest/pipeline/universal.py, ln 226, in deserialize_from_http_generics
    return cls.deserialize_from_text(body_bytes, content_type)
site-packages/msrest/pipeline/universal.py, ln 203, in deserialize_from_text
    raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
msrest.exceptions.DeserializationError: Cannot deserialize content-type: text/plain

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az monitor log-analytics workspace data-export update --name SentinelArchive --resource-group AccessLex-Azure-Datacenter -- 'workspace-name ALexAzureSentinal --tables AuditLogs AWSCloudTrail AzureActivity BehaviorAnalytics CommonSecurityLog ComputerGroup ConfigurationChange ConfigurationData DeviceEvents DeviceFileEvents DeviceInfo DeviceLogonEvents DeviceNetworkEvents DeviceNetworkInfo DeviceProcessEvents DeviceRegistryEvents Event IntuneDevices IntuneOperationalLogs McasShadowItReporting OfficeActivity Operation ProtectionStatus SecurityAlert SecurityBaseline SecurityBaselineSummary SecurityEvent SecurityIncident ServiceMapComputer_CL ServiceMapProcess_CL SigninLogs Update UpdateSummary VMBoundPort VMComputer VMConnection VMProcess WVDConnections WVDErrors WVDFeeds'

Expected Behavior

Environment Summary

Linux-4.15.0-1111-azure-x86_64-with-debian-10.2 (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.21.0

Extensions:
ai-examples 0.2.5
ssh 0.1.4

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 31, 2021
@NetworkAdministratorsALI
Copy link
Author

Note, this is being done by Azure CLI

@NetworkAdministratorsALI
Copy link
Author

Full error details:
The command failed with an unexpected error. Here is the traceback:
Cannot deserialize content-type: text/plain
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 660, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 723, 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 715, in _run_job
return cmd_copy.exception_handler(ex)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/monitor/_exception_handler.py", line 23, in exception_handler
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 694, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 331, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 567, in handler
result = cached_put(cmd, setter, **setterargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 450, in cached_put
return _put_operation()
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 444, in _put_operation
result = operation(**kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/loganalytics/operations/_data_exports_operations.py", line 185, in create_or_update
error = self._deserialize(_models.DataExportErrorResponse, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1367, in call
data = self._unpack_content(response_data, content_type)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1541, in _unpack_content
raw_data.headers
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/universal.py", line 226, in deserialize_from_http_generics
return cls.deserialize_from_text(body_bytes, content_type)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/universal.py", line 203, in deserialize_from_text
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
msrest.exceptions.DeserializationError: Cannot deserialize content-type: text/plain

@yonzhan yonzhan added the Monitor az monitor label Apr 1, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Apr 1, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Apr 1, 2021
@yonzhan yonzhan added this to the S185 milestone Apr 1, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 1, 2021

@kairu-ms for awareness

@kairu-ms
Copy link
Contributor

kairu-ms commented Apr 1, 2021

Same as #17231

@kairu-ms kairu-ms added the Service Attention This issue is responsible by Azure service team. label Apr 1, 2021
@ghost
Copy link

ghost commented Apr 1, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sameergMS, @dadunl.

Issue Details

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az monitor log-analytics workspace data-export update

Errors:

Cannot deserialize content-type: text/plain
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 233, in invoke
...
site-packages/msrest/pipeline/universal.py, ln 226, in deserialize_from_http_generics
    return cls.deserialize_from_text(body_bytes, content_type)
site-packages/msrest/pipeline/universal.py, ln 203, in deserialize_from_text
    raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
msrest.exceptions.DeserializationError: Cannot deserialize content-type: text/plain

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az monitor log-analytics workspace data-export update --name SentinelArchive --resource-group AccessLex-Azure-Datacenter -- 'workspace-name ALexAzureSentinal --tables AuditLogs AWSCloudTrail AzureActivity BehaviorAnalytics CommonSecurityLog ComputerGroup ConfigurationChange ConfigurationData DeviceEvents DeviceFileEvents DeviceInfo DeviceLogonEvents DeviceNetworkEvents DeviceNetworkInfo DeviceProcessEvents DeviceRegistryEvents Event IntuneDevices IntuneOperationalLogs McasShadowItReporting OfficeActivity Operation ProtectionStatus SecurityAlert SecurityBaseline SecurityBaselineSummary SecurityEvent SecurityIncident ServiceMapComputer_CL ServiceMapProcess_CL SigninLogs Update UpdateSummary VMBoundPort VMComputer VMConnection VMProcess WVDConnections WVDErrors WVDFeeds'

Expected Behavior

Environment Summary

Linux-4.15.0-1111-azure-x86_64-with-debian-10.2 (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.21.0

Extensions:
ai-examples 0.2.5
ssh 0.1.4

Additional Context

Author: NetworkAdministratorsALI
Assignees: kairu-ms
Labels:

Monitor, Service Attention

Milestone: S185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor az monitor Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants