Skip to content

Instantly share code, notes, and snippets.

View eis-css-jessedickens's full-sized avatar
👌
getting stuff done...

Jesse Dickens eis-css-jessedickens

👌
getting stuff done...
View GitHub Profile
@eis-css-jessedickens
eis-css-jessedickens / SH-DisableDefenderforStorageMalwareScanning.sh
Created September 24, 2025 14:58
SH-DisableDefenderforStorageMalwareScanning
# Set your subscription
az account set --subscription "<YOUR_SUBSCRIPTION_ID>"
# Keep Defender for Storage V2 on, but disable ONLY malware scanning
az security pricing create \
--name StorageAccounts \
--tier Standard \
--subplan DefenderForStorageV2 \
--extensions name=OnUploadMalwareScanning isEnabled=False \
--extensions name=SensitiveDataDiscovery isEnabled=True
@eis-css-jessedickens
eis-css-jessedickens / PS1-DisableDefenderforStorageMalwareScanning.ps1
Created September 24, 2025 14:56
PS1-DisableDefenderforStorageMalwareScanning
# Requires Az.Accounts, Az.Security
# Connect-AzAccount
Set-AzContext -Subscription "<YOUR_SUBSCRIPTION_ID>"
# Disable ONLY malware scanning at the subscription level
# (keeps the Defender for Storage plan and Sensitive Data Discovery as-is)
Set-AzSecurityPricing `
-Name "StorageAccounts" `
-PricingTier "Standard" `
-SubPlan "DefenderForStorageV2" `