POWERSHELL COMMAND
Get-XdrConfigurationAlertServiceSetting
Retrieves alert service settings from Microsoft Defender XDR.
Gets the alert service settings for various workloads from the Microsoft Defender XDR portal, showing which services have alerts disabled and the reasons for disablement. This function includes caching support with a 30-minute TTL to reduce API calls.
Syntax
Get-XdrConfigurationAlertServiceSetting [-Force] [<CommonParameters>]
Parameters
-Force
| Property | Value |
|---|---|
| Type | SwitchParameter |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | False |
Bypasses the cache and forces a fresh retrieval from the API.
Examples
Get-XdrConfigurationAlertServiceSetting
Retrieves the alert service settings using cached data if available.
Get-XdrConfigurationAlertServiceSetting -Force
Forces a fresh retrieval of the alert service settings, bypassing the cache.
Output
Type: Object[]
Returns the alert service settings for each workload with translated names and normalized reasons.