az security sub-assessment

View your security sub assessments.

Commands

az security sub-assessment list

List all security sub assessment results.

az security sub-assessment show

Shows a security sub assessment.

az security sub-assessment list

List all security sub assessment results.

az security sub-assessment list [--assessed-resource-id]
                                [--assessment-name]
                                [--query-examples]
                                [--subscription]

Examples

Get security sub assessments.

az security sub-assessment list

Optional Parameters

--assessed-resource-id

The target resource for this assessment.

--assessment-name

Name of the assessment resource.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az security sub-assessment show

Shows a security sub assessment.

az security sub-assessment show --assessment-name
                                --name
                                [--assessed-resource-id]
                                [--query-examples]
                                [--subscription]

Examples

Get a security sub assessment.

az security sub-assessment show --assessed-resource-id '/subscriptions/f8b197db-3b2b-4404-a3a3-0dfec293d0d0/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1' --assessment-name '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d' -n 'd7c4d9ec-227c-4fb3-acf9-25fdd97c1bf1'

Required Parameters

--assessment-name

Name of the assessment resource.

--name -n

Name of the resource to be fetched.

Optional Parameters

--assessed-resource-id

The target resource for this assessment.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.