CmdID

CmdID / az / az security / az security va / az security va sql

az security va sql create

Create the SQL Vulnerability Assessment settings. Azure CLI reference

2 examples 2 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Enable SQL Vulnerability Assessment on an Azure SQL server.

az security va sql create --resource-id /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Sql/servers/{server} --state EnabledIdentify
--resource-idThe fully qualified Azure Resource manager identifier of the resource.
--stateRepresents the state of a SQL Vulnerability Assessment.

Enable SQL Vulnerability Assessment on a SQL server hosted on an Azure virtual machine.

az security va sql create --resource-id /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines/{vm} --state EnabledIdentify
--resource-idThe fully qualified Azure Resource manager identifier of the resource.
--stateRepresents the state of a SQL Vulnerability Assessment.

Options

2 in the Azure CLI reference
--resource-idThe fully qualified Azure Resource manager identifier of the resource.
--stateRepresents the state of a SQL Vulnerability Assessment.