Hi,
I believe the syntax for sending StorageWrite logs to Log Analytics workspace is the one below where $Log_SA_ID is the resource ID of the Log Analytics workspace, and $ResourceID is the resource ID of the storage account which you want to stream the logs to Log Analytics.
az monitor diagnostic-settings create --name Test-SA-Diagnostics --workspace $Log_SA_ID --resource $ResourceID --logs '[{"category": "StorageWrite","enabled": true}]'
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.