-
Notifications
You must be signed in to change notification settings - Fork 3k
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
It is not possible to create data connectors with az sentinel data-connector #27092
Comments
2.50.0 is not the latest Azure CLI(2.51.0). Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli. |
Thank you for opening this issue, we will look into it. |
Thank you for your feedback. This has been routed to the support team for assistance. |
1 similar comment
Thank you for your feedback. This has been routed to the support team for assistance. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amirkeren. Issue DetailsDescribe the bugI am trying to create and enable data connectors in Azure Sentinel. The documentation doesn't help much, but it should be a two step process:
I am not able to go past the first step. In particular, the command below should work: az sentinel data-connector create --data-connector-id AzureActiveDirectory But I am getting the following error:
I tried to add the --kind argument, but then I get the error Related commandaz sentinel data-connector create Errors
Issue script & Debug output
Expected behaviorThe command should have finished with a success code, and the data connector should have been created on Azure Sentinel Environment Summary
Additional contextNo response
|
Adding service team to look into this. |
Hi @necusjz! Have you had any chance to look into this issue? It should be the same problem that causes this other issue. In case this is not a priority, do you have a workaround maybe? |
@celsocoutinho-tangany It seems |
What exactly needs to be passed in that parameter? I don't really understand what is meant by Could you give me an example of a working command? For example, for the
|
It comes from shorthand syntax, e.g., and Ref: https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md |
Thank you! I have managed to do some progress I think, with the command below:
I am now getting the following error, which is strange because I have all the required permissions. I am able to do it manually on Azure Portal. Any idea what the problem is?
|
@celsocoutinho-tangany Security Administrator/Global Administrator role on the account? It's odd that it works through portal and not through CLI. I feel like I'm having a similar issue trying to get it done through bicep. |
@Kaloszer I have Contributor rights on the subscription where the Log Analytics Workspace is deployed. Why would I need permissions on Azure AD to run this command? 🤔 |
@celsocoutinho-tangany voodoo magic, what else, there's no permissions required defined anywhere in the docs for data connectors, maybe for some you can find articles (eg. Microsoft 365 Defender in an article from 2020 says Global Administrator), Azure Activity (legacy connector says Security Administrator) - the new one deploys using Azure Policy so there's another set of permissions required again (which is again, not defined anywhere in the docs that I could find :/ ) For the bicep deployment Security Administrator is not enough, it does not seem to have "/providers/Microsoft.aadiam" scope in it. So it needs to be added manually |
Could you please provide the debug log by appending |
@necusjz here it is:
|
Thank you for your info, I'll contact service team for the root cause. |
Hi @necusjz ! Has there been any progress here? |
Describe the bug
I am trying to create and enable data connectors in Azure Sentinel. The documentation doesn't help much, but it should be a two step process:
az sentinel data-connector create
to create the data connector in Azure Sentinelaz sentinel data-connector connect
to enableI am not able to go past the first step. In particular, the command below should work:
az sentinel data-connector create --data-connector-id AzureActiveDirectory
--resource-group my-rg \
--workspace-name my-workspace
--subscription my-subscription
But I am getting the following error:
I tried to add the --kind argument, but then I get the error
unrecognized arguments: --kind StaticUI
.Related command
az sentinel data-connector create
Errors
Issue script & Debug output
Expected behavior
The command should have finished with a success code, and the data connector should have been created on Azure Sentinel
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: