CmdID / az / az security / az security va / az security va sql / az security va sql scans
az security va sql scans show
Get the scan details of a single scan record. Azure CLI reference
2 examples 3 options Its page in the Azure CLI reference
Examples
Show scan details for a given scan id on an Azure SQL database.
az security va sql scans show --resource-id /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Sql/servers/{server}/databases/{db} --scan-id Scan_2026-01-01T00-00-00ZIdentify--resource-idThe fully qualified Azure Resource manager identifier of the resource.--scan-idThe scan Id.Show scan details on a SQL DB hosted on an Azure virtual machine.
az security va sql scans show --resource-id /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines/{vm} --database-name MyDb --scan-id Scan_2026-01-01T00-00-00ZIdentify--resource-idThe fully qualified Azure Resource manager identifier of the resource.--database-nameThe name of the database to assess.--scan-idThe scan Id.Options
--database-nameThe name of the database to assess.--resource-idThe fully qualified Azure Resource manager identifier of the resource.--scan-idThe scan Id.