Azure / Azure/azure-rest-api-specs
Failed to create monitor diagnostic setting with StorageWrite
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
Seems it failed to create monitor diagnostic setting with StorageWrite using azure go sdk client and throw below error message.
According by the [doc](https://docs.microsoft.com/en-us/azure/storage/common/monitor-storage?tabs=azure-powershell#configuration), I assume it has been supported by azure portal. So I assume it should also be supported by rest api, right?
Error message:
```
Error: Error creating Monitor Diagnostics Setting "storageodgxstor-logs" for Resource "/subscriptions/xx-xx-xx-xx/resourceGroups/storage-odgx/providers/Microsoft.Storage/storageAccounts/storageodgxstor": insights.DiagnosticSettingsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Category 'StorageWrite' is not supported."
```
Contributor guide
Research direction
Start with the Azure Storage monitoring documentation linked in the issue and the Monitor diagnostic-settings REST API definition. Reproduce the CreateOrUpdate request for the storage account and verify whether StorageWrite is accepted; done means the specification and service behavior agree, with the supported category or limitation documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- api, cloud, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100