az security assessment
View your security assessment results.
Commands
Name | Description | Type | Status |
---|---|---|---|
az security assessment create |
Creates a customer managed security assessment. |
Core | GA |
az security assessment delete |
Deletes a security assessment. |
Core | GA |
az security assessment list |
List all security assessment results. |
Core | GA |
az security assessment show |
Shows a security assessment. |
Core | GA |
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]
Examples
Creates a security assessment.
az security assessment create -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d' --status-code 'unhealthy'
Required Parameters
Name of the resource to be fetched.
Programmatic code for the result of the assessment. can be "Healthy", "Unhealthy" or "NotApplicable".
Optional Parameters
Data that is attached to the assessment result for better investigations or status clarity.
The target resource for this assessment.
Programmatic code for the cause of the assessment result.
Human readable description of the cause of the assessment result.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security assessment delete
Deletes a security assessment.
az security assessment delete --name
[--assessed-resource-id]
Examples
Deletes a security assessment.
az security assessment delete -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d'
Required Parameters
Name of the resource to be fetched.
Optional Parameters
The target resource for this assessment.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security assessment list
List all security assessment results.
az security assessment list
Examples
Get security assessments.
az security assessment list
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az security assessment show
Shows a security assessment.
az security assessment show --name
[--assessed-resource-id]
Examples
Get a security assessment.
az security assessment show -n '4fb6c0a0-1137-42c7-a1c7-4bd37c91de8d'
Required Parameters
Name of the resource to be fetched.
Optional Parameters
The target resource for this assessment.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.