Forum Discussion
lgab18
Mar 06, 2023Copper Contributor
Get AzSentinelDataConnector no output
Hi All, I'm trying to export the list of all the data connectors using powershell module Az Security Insight. when I run the command Get-AzSentinelDataConnector, I have no output PS C:\Users\> Ge...
Varun_Ghildiyal
Mar 07, 2023Brass Contributor
It's possible that there are no data connectors configured in the specified Azure Sentinel workspace. You can try running the command Get-AzSentinelDataConnector without specifying the -ResourceGroupName and -WorkspaceName parameters to see if any data connectors are returned for your account:
Get-AzSentinelDataConnector
If there are no data connectors returned, you'll need to configure data connectors first before you can use the Get-AzSentinelDataConnector cmdlet.
If you do have data connectors configured but the Get-AzSentinelDataConnector cmdlet is not returning any output, it's possible that you don't have permissions to view data connectors in the specified workspace. Make sure that you have the appropriate permissions assigned to your account. You may need to be added to the "Azure Sentinel Contributor" role in the subscription or resource group where the workspace is located.
If you still can't get any output from the Get-AzSentinelDataConnector cmdlet, you can try using the Azure Portal or Azure Sentinel REST API to view the list of data connectors.
Get-AzSentinelDataConnector
If there are no data connectors returned, you'll need to configure data connectors first before you can use the Get-AzSentinelDataConnector cmdlet.
If you do have data connectors configured but the Get-AzSentinelDataConnector cmdlet is not returning any output, it's possible that you don't have permissions to view data connectors in the specified workspace. Make sure that you have the appropriate permissions assigned to your account. You may need to be added to the "Azure Sentinel Contributor" role in the subscription or resource group where the workspace is located.
If you still can't get any output from the Get-AzSentinelDataConnector cmdlet, you can try using the Azure Portal or Azure Sentinel REST API to view the list of data connectors.
lgab18
Mar 09, 2023Copper Contributor
Thank for your reply . I thought cmdlet Get-AzSentinelDataConnector wihout Id parameters get me the list of all the data connector (Active or Inactive) on Sentinel.
I have tried to use Rest API too (to get the list of all Sentinel Data Connector available) always with the same results. No output ( no error, no any type of messages)
Regards,
Luca
- Varun_GhildiyalMar 09, 2023Brass ContributorAzure Sentinel Contributor
do you have this access