Hi,
I'm trying to deploy diagnostic settings for Azure storage using ARM templates following https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/resource-manager-diagnostic-settings#diagnostic-setting-for-azure-storage.
Following is the snippet of the resource block:
{
"type": "Microsoft.Storage/storageAccounts/blobServices/providers/diagnosticsettings",
"apiVersion": "2017-05-01-preview",
"name": "[concat(parameters('storageAccountName'),'/default/Microsoft.Insights/', parameters('settingName'))]",
"properties": {
"storageAccountId": "[parameters('archiveStorageId')]",
"logs": [
{
"category": "StorageRead",
"enabled": true
},
{
"category": "StorageWrite",
"enabled": true
},
{
"category": "StorageDelete",
"enabled": true
}
]
}
However, I'm getting the following error for all storage types:
The resource type could not be found in the namespace 'Microsoft.Storage' for api version '2017-05-01-preview'
and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.