Triage and Remediation
Remediation
Using Console
Using Console
To remediate the “No Security Contact Phone Set” misconfiguration in Azure using the Azure console, follow these steps:
- Log in to the Azure portal (https://portal.azure.com/).
- Click on the “Security Center” icon in the left-hand menu.
- Click on the “Security policy” link in the Security Center dashboard.
- In the “Policy” blade, click on the “Edit” button.
- Scroll down to the “Security contact phone number” policy setting and click on it.
- Enable the policy by clicking on the “On” button.
- Enter a valid phone number in the “Security contact phone number” field.
- Click on the “Save” button to save the policy changes.
Using CLI
Using CLI
To remediate the misconfiguration “No Security Contact Phone Set” for AZURE using AZURE CLI, follow these steps:
- Open the Azure CLI on your local machine or using the Azure Cloud Shell.
-
Run the following command to check the current security contact phone number configuration:
-
If the output shows that no phone number is set, run the following command to set the security contact phone number:
Replace the
<email-address>
,<phone-number>
, and<contact-name>
placeholders with the appropriate values. -
After running the command, verify that the security contact phone number has been set by running the following command:
The output should show the updated security contact information.
Using Python
Using Python
To remediate the misconfiguration of “No Security Contact Phone Set” in Azure using Python, you can use the Azure SDK for Python. Here are the steps to follow:
-
Install the Azure SDK for Python using the following command:
-
Import the necessary modules and authenticate with Azure using your credentials:
-
Get the list of all the action groups in your Azure account:
-
Check if any of the action groups have a phone number set:
-
If you find an action group with no phone number set, update it with a valid phone number: