More Info:

Ensure that all the Azure virtual machine (VM) instances necessary for your application stack are launched from an approved base Azure machine image, known as golden machine image, in order to enforce application security best practices, consistency, and save time when scaling your application.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

The issue of “Approved Azure Machine Image In Use” occurs when an Azure virtual machine is using an image that is not approved by the organization’s policies. To remediate this issue, follow the steps below:

  1. Log in to the Azure portal (https://portal.azure.com/).

  2. Go to the virtual machine that is using the unapproved image.

  3. Stop the virtual machine.

  4. Go to the “Disks” section of the virtual machine.

  5. Select the OS disk of the virtual machine.

  6. Click on the “Create snapshot” button to create a snapshot of the OS disk.

  7. Go to the “Images” section of the Azure portal.

  8. Click on the “Add” button to create a new image.

  9. Fill in the necessary details for the new image, including the name, description, and the snapshot that was created in step 6.

  10. Click on the “Create” button to create the new image.

  11. Once the image is created, go back to the virtual machine that was using the unapproved image.

  12. Go to the “Configuration” section of the virtual machine.

  13. Change the “Image” setting to the new image that was created in step 10.

  14. Start the virtual machine.

The virtual machine should now be using the approved image, and the issue of “Approved Azure Machine Image In Use” should be remediated.