No types available for Defender Storage Settings #10324
-
Hello, This is regarding the bicep for deploying the Azure Defender Storage here. When I use that template, I get a bicep type validation warning "Type validation is not available for resource types declared containing a "providers" segment. Please instead use the "scope" property." To fix this, I was going to refer the resource directly as 'Microsoft.Security/DefenderForStorageSettings@2022-12-01-preview'. But bicep says that there are no such types available. How can I define this resource? I appreciate your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 30 replies
-
They have the Bicep samples on this page, we're you able to deploy then? Defender enable on SubscriptionDefender enable on Resource |
Beta Was this translation helpful? Give feedback.
They have the Bicep samples on this page, we're you able to deploy then?
Defender enable on Subscription
https://learn.microsoft.com/en-us/azure/storage/common/azure-defender-storage-configure?toc=%2Fazure%2Fdefender-for-cloud%2Ftoc.json&tabs=enable-subscription#enable-and-configure-with-iac-templates
Defender enable on Resource
https://learn.microsoft.com/en-us/azure/storage/common/azure-defender-storage-configure?toc=%2Fazure%2Fdefender-for-cloud%2Ftoc.json&tabs=enable-storage-account#bicep-template-1