CmdID / az / az backup / az backup item / az backup item source-scan-configuration
az backup item source-scan-configuration set
Set the Source Scan configuration used by Microsoft Defender for Cloud threat detection. Azure CLI reference
2 examples 5 options Its page in the Azure CLI reference
Examples
Enable Source Scan for a backed up Azure VM item.
az backup item source-scan-configuration set --resource-group MyResourceGroup --vault-name MyVault --container-name MyContainer --name MyItem --state Enabled --backup-management-type AzureIaasVM --workload-type VMIdentify--resource-groupName of resource group.--vault-nameName of the Recovery services vault.--nameName of the backed up Azure VM item.--stateSource Scan state used by Microsoft Defender for Cloud threat detection.--backup-management-typeType of backup management for the item.--workload-typeType of workload protected by the item.Disable Source Scan for a backed up Azure VM item.
az backup item source-scan-configuration set --resource-group MyResourceGroup --vault-name MyVault --container-name MyContainer --name MyItem --state Disabled --backup-management-type AzureIaasVM --workload-type VMIdentify--resource-groupName of resource group.--vault-nameName of the Recovery services vault.--nameName of the backed up Azure VM item.--stateSource Scan state used by Microsoft Defender for Cloud threat detection.--backup-management-typeType of backup management for the item.--workload-typeType of workload protected by the item.Options
--backup-management-typeType of backup management for the item.--container-name, -c--name, -nName of the backed up Azure VM item.--stateSource Scan state used by Microsoft Defender for Cloud threat detection.--workload-typeType of workload protected by the item.