Complete the code to enable Azure Security Center's default policy.
az security [1] enableThe policy command enables Azure Security Center's default security policies, which help improve your security posture.
Complete the code to list all security recommendations in Azure Security Center.
az security [1] listThe recommendations command lists security improvement suggestions to enhance your security posture.
Fix the error in the command to show the security posture score.
az security [1] show --query 'securityScore'
The correct command uses secure-score to show the security posture score in Azure Security Center.
Fill both blanks to create a policy assignment for security baseline.
az policy assignment create --name [1] --policy [2]
The assignment name is secureBaselineAssignment and the policy definition ID is the SecurityBaseline path.
Fill all three blanks to create a resource group and enable security auto provisioning.
az group create --name [1] --location [2] az security auto-provisioning-setting create --name [3] --auto-provision "On" --resource-group [1]
The resource group is named MySecurityGroup, located in eastus, and the auto-provisioning setting is named default.