DefenderForStorageSettingResource.StartMalwareScanAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiate a Defender for Storage malware scan for the specified storage account. Blobs and Files will be scanned for malware.
- Request Path. : /{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/startMalwareScan.
- Operation Id. : DefenderForStorageSettings_StartMalwareScan.
- Default Api Version. : 2025-09-01-preview.
- Resource. : DefenderForStorageSettingResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan>> StartMalwareScanAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member StartMalwareScanAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan>>
override this.StartMalwareScanAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.MalwareScan>>
Public Overridable Function StartMalwareScanAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MalwareScan))
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.