Azure / Azure/azure-cli-extensions
az sentinel data-connector create returns an error
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
**Describe the bug**
Using ```az sentinel data-connector create``` with the expected arguments produces an error and the data connector is not created.
Error returned:
```
(BadRequest) Failed to parse input. Error='Required property 'dataTypes' not found in JSON. Path 'properties', line 3, position 17.'
Code: BadRequest
Message: Failed to parse input. Error='Required property 'dataTypes' not found in JSON. Path 'properties', line 3, position 17.'
```
**To Reproduce**
Enter the following command in a desktop PowerShell window or the Cloud Shell on the Azure portal:
```az sentinel data-connector create --office-data-connector tenant-id="{11111111-1111-1111-1111-aaaaaaaaaaaa}" --data-connector-id "{11111111-1111-1111-1111-bbbbbbbbbbbb}" --resource-group "myResourceGroup-DKS" --workspace-name "myWorkspace-DKS"```
**Expected behavior**
No error and a created data connector.
**Environment summary**
Cloud Shell on the Azure portal and PowerShell (5.1.19041.1320 and 7.2.1) on my Windows 10 machine (version 10.0.19044 Build 19044).
Azure CLI version: 2.31.0.
Contributor guide
Assessment
This issue has not been assessed yet.