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

Manually ASIM Deployment - Failed to validate, Conflict #8623

Open
rcegan opened this issue Jul 25, 2023 · 19 comments
Open

Manually ASIM Deployment - Failed to validate, Conflict #8623

rcegan opened this issue Jul 25, 2023 · 19 comments
Assignees
Labels

Comments

@rcegan
Copy link

rcegan commented Jul 25, 2023

Describe the bug
Upon trying to deploy ASIM parsers via the 'Deploy to Azure' button and filling out the required parameters, a 'Conflict' error appears with the following error: (workspace, location and resource group have been omitted)

The resource '<SENTINELWORKSPACE> already exists in location <LOCATION> in resource group <RESOURCEGROUP>. A resource with the same name cannot be created in location <LOCATION>. Please select a new resource name.

Upon giving it a different name, it creates a new LAW in the designated resource group.

To Reproduce
Steps to reproduce the behavior:

  1. Go to list of parsers https://github.com/Azure/Azure-Sentinel/tree/master/ASIM
  2. Deploy any of them
  3. Fill out the workspace name in the 'Workspace' field and pick the correct resource group containing the LAW
  4. Deploy

Expected behavior
The parsers should deploy into the targeted workspace and become available for query.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Edge
  • Version: 115

Additional context
I have all required permissions to deploy this content.

@github-actions
Copy link
Contributor

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

@github-actions
Copy link
Contributor

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

@github-actions
Copy link
Contributor

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

@github-actions
Copy link
Contributor

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.

@v-rbajaj
Copy link
Contributor

Hi @rcegan, we are checking on this and we will provide an update soon.

@v-rbajaj
Copy link
Contributor

Hi @rcegan, waiting for update from concerned team, once we receive an update will let you know.

1 similar comment
@v-rbajaj
Copy link
Contributor

v-rbajaj commented Aug 1, 2023

Hi @rcegan, waiting for update from concerned team, once we receive an update will let you know.

@v-rbajaj
Copy link
Contributor

v-rbajaj commented Aug 4, 2023

Hi @rcegan, we are still waiting for update from concerned team, we will get back to you once there is an update.

1 similar comment
@v-rbajaj
Copy link
Contributor

v-rbajaj commented Aug 9, 2023

Hi @rcegan, we are still waiting for update from concerned team, we will get back to you once there is an update.

@rcegan
Copy link
Author

rcegan commented Aug 13, 2023

I was able to work around the problem by deploying the resources to a different location than the log analytics workspace itself. Solves my issue but I suspect that's probably not the intended behaviour

@v-rbajaj
Copy link
Contributor

v-rbajaj commented Aug 16, 2023

I was able to work around the problem by deploying the resources to a different location than the log analytics workspace itself. Solves my issue but I suspect that's probably not the intended behaviour

According to the error message, it is working as expected.

Try deleting the previous one and installing in the same location, it should work fine.

@vakohl
Copy link
Contributor

vakohl commented Aug 18, 2023

@rcegan thanks for raising this issue. Can you please share the location details where it failed and where it worked for you?

@rcegan
Copy link
Author

rcegan commented Aug 20, 2023

I was working with Australia Southeast and Australia East. Deploying to Australia Southeast, with the log analytics workspace in the same location, the deployment failed (due to a resource already existing in that location - the workspace itself). Picking a different location (Australia East) it appeared to work fine.

@azurekid
Copy link
Contributor

Hi, This behavior is as expected due to the following reason.
When deploying the ASIM parsers using the ARM templates a POST request is done at the background.

Because the ASIM parsers already exists, this will result in an error as described above.

There are 2 workarounds to remediate this issue:

  • Remove the existing ASIM parsers for the workspace using the Microsoft PowerShell script
  • Deploy the updated parsers using the API using the UPDATE method.

It is more an issue related to Log Analytics than Microsoft Sentinel or ASIM as they are dependent on Log Analytics.

What I can do is create a PowerShell script that updates the ASIM parsers is they already exists and use the ASIM yaml files as input. Or create and ARM template that uses a Script Extension to run the PowerShell script in a different context.

This might need some extra permissions in the Azure Subscription / Resource Group but need to validate this first.

@rcegan @vakohl

@vakohl
Copy link
Contributor

vakohl commented Sep 22, 2023

@rcegan I created a new workspace, deployed Process Event parsers multiple times on same workspace. I didn't got that error. Am I missing anything that you tried? Which schema parser you were trying to deploy. Can you please retry on a new and on the same workspace you previously tried, see if you are still getting that error?

@v-rbajaj
Copy link
Contributor

Hi @rcegan,

Gentle Reminder: We are awaiting for your response on this issue. If you still need to keep this issue active please respond on it in the next 2 days. If we don't receive response, we will be close this issue.

@jusso-dev
Copy link
Contributor

jusso-dev commented Sep 27, 2023

Sorry to add to the noise, but I'm having the exact same problem. Tried deploying all ASIM parsers and then just one-by-one, same error message "Conflict"

image

I've tried putting the LAW in Australia Southeast and the LAW in Australia East, and also putting them in the same region, no difference to the output.

Drilling into the error message isn't any more help, just states eTAG for specific error was outdated

newer data exists. If you are using eTag please use the latest one and try again in a few minutes. Operation Id: '4918a525df68776dd0a7063aaa6db6dd' (Code: NewerDataExists)

Trying to redeploy multiple times to get other deployments to succeed does not help either.

@vakohl
Copy link
Contributor

vakohl commented Nov 23, 2023

@rcegan @jusso-dev FYI, this issue is being investigated.

@vakohl
Copy link
Contributor

vakohl commented Dec 6, 2023

@rcegan @jusso-dev @azurekid
This issue is still being looked into. This seems more of Log Analytics issue than Sentinel, we are working with concerned teams to get this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants