az backup item source-scan-configuration
Manage Source Scan configuration for a backed up Azure VM item.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az backup item source-scan-configuration set |
Set the Source Scan configuration used by Microsoft Defender for Cloud threat detection. |
Core | GA |
az backup item source-scan-configuration set
Set the Source Scan configuration used by Microsoft Defender for Cloud threat detection.
az backup item source-scan-configuration set --backup-management-type {AzureIaasVM}
--container-name
--name
--state {Disabled, Enabled}
--workload-type {VM}
[--acquire-policy-token]
[--change-reference]
[--ids]
[--resource-group]
[--subscription]
[--vault-name]
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 VM
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 VM
Required Parameters
Type of backup management for the item.
| Property | Value |
|---|---|
| Accepted values: | AzureIaasVM |
Name of the backup container. Accepts 'Name' or 'FriendlyName' from the output of az backup container list command. If 'FriendlyName' is passed then BackupManagementType is required.
Name of the backed up Azure VM item.
Source Scan state used by Microsoft Defender for Cloud threat detection.
| Property | Value |
|---|---|
| Accepted values: | Disabled, Enabled |
Type of workload protected by the item.
| Property | Value |
|---|---|
| Accepted values: | VM |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the Recovery services vault.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |