az security assessment

View your security assessment results.

Commands

az security assessment create

Creates a customer managed security assessment.

az security assessment delete

Deletes a security assessment.

az security assessment list

List all security assessment results.

az security assessment show

Shows a security assessment.

az security assessment create

Creates a customer managed security assessment.

az security assessment create --name
                              --status-code
                              [--additional-data]
                              [--assessed-resource-id]
                              [--status-cause]
                              [--status-description]
                              [--subscription]

Examples

Creates a security assessment.

az security assessment create -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d' --status-code  'unhealthy'

Required Parameters

--name -n

Name of the resource to be fetched.

--status-code

Progremmatic code for the result of the assessment. can be "Healthy", "Unhealthy" or "NotApplicable".

Optional Parameters

--additional-data

Data that is attached to the assessment result for better investigations or status clarity.

--assessed-resource-id

The target resource for this assessment.

--status-cause

Progremmatic code for the cause of the assessment result.

--status-description

Human readable description of the cause of the assessment result.

--subscription

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

az security assessment delete

Deletes a security assessment.

az security assessment delete --name
                              [--assessed-resource-id]
                              [--subscription]

Examples

Deletes a security assessment.

az security assessment delete -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d'

Required Parameters

--name -n

Name of the resource to be fetched.

Optional Parameters

--assessed-resource-id

The target resource for this assessment.

--subscription

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

az security assessment list

List all security assessment results.

az security assessment list [--query-examples]
                            [--subscription]

Examples

Get security assessments.

az security assessment list

Optional Parameters

--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 assessment show

Shows a security assessment.

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

Examples

Get a security assessment.

az security assessment show -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d'

Required Parameters

--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.