Azure-Sentinel icon indicating copy to clipboard operation
Azure-Sentinel copied to clipboard

Cisco Umbrella Data Connector - Azure function invocations fail with "The specified resource type does not match the type of the existing resource"

Open vamshisiram opened this issue 11 months ago • 9 comments

We are just now onboarding Cisco Umbrella data connector inside Azure Sentinel and are getting the following error on EVERY function run (so every ten mins):

The function got created fine and shows no errors. The Data Connector shows connected but only some tables are getting pulled. The proxy logs are not updating since the initial run (24 hours ago).

Image

Azure Functions is using Python 3.11.

We reviewed the troubleshooting guide here https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CiscoUmbrella/Data%20Connectors/CiscoUmbrella_TestingInstructions.docx and the error below is not listed in that troubleshooting guide, so reaching out here in GitHub for assistance.

Result: Failure Type: Exception: ResourceExistsError: The specified resource type does not match the type of the existing resource. RequestId:3b4d7773-d01a-0064-51d3-693bf7000000 Time:2025-12-10T12:50:07.8054874Z ErrorCode:ResourceTypeMismatch Content: ResourceTypeMismatchThe specified resource type does not match the type of the existing resource. RequestId:3b4d7773-d01a-0064-51d3-693bf7000000 Time:2025-12-10T12:50:07.8054874Z Stack: File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 684, in _handle__invocation_request call_result = await self._loop.run_in_executor( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 1015, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/extension.py", line 211, in _raw_invocation_wrapper result = function(**args) ^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/ciscoUmbrellaDataConn/init.py", line 130, in main state_manager_cu.post(datetime.datetime.strftime(last_ts, '%Y-%m-%dT%H:%M:%S.%fZ')) File "/home/site/wwwroot/ciscoUmbrellaDataConn/state_manager.py", line 16, in post self.file_cli.upload_file(marker_text) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_file_client.py", line 618, in upload_file return _upload_file_helper( ^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_file_client.py", line 110, in _upload_file_helper process_storage_error(error) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_shared/response_handlers.py", line 195, in process_storage_error exec("raise error from None") # pylint: disable=exec-used # nosec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1, in File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_file_client.py", line 81, in _upload_file_helper response = client.create_file( ^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_file_client.py", line 494, in create_file process_storage_error(error) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_shared/response_handlers.py", line 195, in process_storage_error exec("raise error from None") # pylint: disable=exec-used # nosec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1, in File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_file_client.py", line 478, in create_file return cast(Dict[str, Any], self._client.file.create( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/storage/fileshare/_generated/operations/_file_operations.py", line 1468, in create map_error(status_code=response.status_code, response=response, error_map=error_map) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/core/exceptions.py", line 163, in map_error raise error

vamshisiram avatar Dec 10 '25 14:12 vamshisiram

@v-kasghosh @v-utpalkumar @v-sudkharat @hassanchawiche Hi everyone, happy new year. Any update on this please?

vamshisiram avatar Jan 08 '26 20:01 vamshisiram

I'm not able to repro this issue. All tables are getting pulled. Please find the below screenshot for reference.

Image

dhanunjaya1054 avatar Apr 10 '26 05:04 dhanunjaya1054

@v-utpalkumar , @v-kasghosh - Requesting you to please close this issue as I am not able to act on this. Thanks!

dhanunjaya1054 avatar Apr 10 '26 05:04 dhanunjaya1054

@dhanunjaya1054 Sorry, just because you cannot reproduce it, does not mean the issue should be closed. Right?

Please let me know what other information you need to investigate this and I will be more than happy to provide you that.

We are still facing this issue. Do not close the issue. @v-utpalkumar @v-kasghosh

Get Outlook for iOShttps://aka.ms/o0ukef


From: v-dhbedu_microsoft @.> Sent: Friday, April 10, 2026 12:17:54 AM To: Azure/Azure-Sentinel @.> Cc: vamshisiram @.>; Author @.> Subject: Re: [Azure/Azure-Sentinel] Cisco Umbrella Data Connector - Azure function invocations fail with "The specified resource type does not match the type of the existing resource" (Issue #13291)

[https://avatars.githubusercontent.com/u/88818286?s=20&v=4]dhanunjaya1054 left a comment (Azure/Azure-Sentinel#13291)https://github.com/Azure/Azure-Sentinel/issues/13291#issuecomment-4220889874

@v-utpalkumarhttps://github.com/v-utpalkumar , @v-kasghoshhttps://github.com/v-kasghosh - Requesting you to please close this issue as I am not able to act on this. Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/Azure-Sentinel/issues/13291#issuecomment-4220889874, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVU36WQ5WDZAZQ5PJDSRTKL4VB7YFAVCNFSM6AAAAACOUAPKVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DEMRQHA4DSOBXGQ. You are receiving this because you authored the thread.Message ID: @.***>

vamshisiram avatar Apr 10 '26 12:04 vamshisiram

@vamshisiram - The issue might be due to a timestamp state marker conflict in the Azure File Share. Please follow the following steps to resolve the issue.

  1. Go to Azure Portal => the Storage Account used by your Function App (same connection string as AzureWebJobsStorage)
  2. Navigate to Storage browser => File shares => funcstatemarkershare
  3. Delete the item named cisco_umbrella
  4. Wait for the next function trigger (within 10 minutes)

Please let us know if the issue still persists, I'm happy to assist. Thanks!

dhanunjaya1054 avatar Apr 13 '26 07:04 dhanunjaya1054

@vamshisiram , Hope you were able to follow the mitigation steps mentioned by Dhanunjaya and resolve the issue? if you see any issue let us know.

For the future purpose, we have made required code changes to handle state manager date corruptions cases too.

if you feel everything is as expected please close the ticket. Thanks in advance!

v-krishnachi avatar Apr 17 '26 18:04 v-krishnachi

@v-krishnachi i have missed @dhanunjaya1054 initial message. I am reviewing it now. Give me some time.

vamshisiram avatar Apr 17 '26 18:04 vamshisiram

@v-krishnachi and @dhanunjaya1054 When we looked, the cisco_umbrella was a folder. We deleted the folder as suggested by @dhanunjaya1054 and allowed the next trigger to occur. On the next run cisco_umbrella was recreated as a file containing a time/date stamp in the storage container.

At this time, we appear to finally be processing logs without errors.

vamshisiram avatar Apr 22 '26 14:04 vamshisiram

Thanks for getting back! Please close the ticket as your data processing now.

v-krishnachi avatar Apr 22 '26 14:04 v-krishnachi