Remove your Microsoft Azure environment

You can remove a Microsoft Azure environment from Sophos Cloud Optix.

You need to remove components from both Sophos Cloud Optix and Microsoft Azure.

If the relevant Sophos Cloud Optix account has been removed, or you don't access to Sophos Cloud Optix, follow the instructions to remove an environment with a script.

Remove an environment using Sophos Cloud Optix and Microsoft Azure

You can use these instructions if you have access to the Sophos Cloud Optix account for the environment.

To remove your Microsoft Azure environment, do as follows:

  1. Sign in to your Sophos Cloud Optix account.
  2. Go to SETTINGS and click Environments.
  3. In the list, find the environment you want to remove and click the trashcan icon.
  4. Copy the commands shown. You’ll need them later.
  5. Confirm that you want to continue. Click OK.
In Microsoft Azure:
  1. Sign in to your Microsoft Azure portal.
    Note You need to be a user with at least the Owner role in the subscription and Application Administrator rights in Active Directory.
  2. Start Cloud Shell and select the PowerShell environment.
  3. Paste in and run the first command from the instructions you copied earlier.
  4. Paste in and run the second command.

    Wait for the script to finish running.

To check that the script has successfully removed Cloud Optix components from your Microsoft Azure environments, do as follows:
  1. Go to Azure Active Directory and open App Registrations.
  2. Select All apps from the drop-down menu and search for Avid.
  3. If there are any apps called AvidSecure Monitor App, manually delete them.

Remove an environment using a script

You can download and run a Microsoft Azure Cloud Shell PowerShell script to remove environments from Microsoft Azure.

You must only use this method if you can't access Sophos Cloud Optix or the relevant Sophos Cloud Optix account.

To remove your Microsoft Azure environment, do as follows:

  1. Sign in to your Microsoft Azure portal.
  2. Start Cloud Shell and select the PowerShell environment.
    Restriction These commands won't work with PowerShell on your local computer.
  3. Enter the following command to download the script:

    curl -O "https://avidcore.s3-us-west-2.amazonaws.com/azure/delete-azure-app.ps1"

  4. Enter the following command to run the script.

    cd ; ./delete-azure-app.ps1

When you've removed all your environments from Sophos Cloud Optix, you must also remove the app AvidSecure Monitor App 999x9 from app registration in your Microsoft Azure Active Directory. You'll no longer have any Sophos Cloud Optix resources in your Microsoft Azure environment.