Update Microsoft Defender Antivirus on Azure Stack Hub

Microsoft Defender Antivirus is an antimalware solution that provides security and virus protection. Every Azure Stack Hub infrastructure component (Hyper-V hosts and virtual machines) is protected with Microsoft Defender Antivirus. For up-to-date protection, you need periodic updates to Microsoft Defender Antivirus definitions, engine, and platform. How updates are applied depends on your configuration.

Connected scenario

The Azure Stack Hub update resource provider downloads antimalware definitions and engine updates multiple times per day. Each Azure Stack Hub infrastructure component gets the update from the update resource provider and applies the update automatically.

For those Azure Stack Hub deployments that are connected to the public Internet, apply the monthly Azure Stack Hub update. The monthly Azure Stack Hub update includes Microsoft Defender Antivirus platform updates for the month.

Disconnected scenario

For those Azure Stack Hub deployments that are not connected to the public Internet (such as air-gapped datacenters) customers have the ability to apply the antimalware definitions and engine updates as they are published.

To apply the updates to your Azure Stack Hub solution, you first have to download them from the Microsoft site (links below) and subsequently, import them into a storage blob container under your updateadminaccount. A scheduled task scans the blob container every 30 minutes and, if new Defender definitions and engine updates are found, it applies them to the Azure Stack Hub infrastructure.

For those disconnected deployments that don't have the ability to download Defender definitions and engine updates on a daily basis, the monthly Azure Stack Hub update includes Microsoft Defender Antivirus definitions, engine, and platform updates for the month.

Set up Microsoft Defender for manual updates

You can use two new cmdlets in the privileged endpoint to configure Microsoft Defender Antivirus manual update in Azure Stack Hub.

### cmdlet to configure the storage blob container for the Defender updates 
Set-AzsDefenderManualUpdate [-Container <string>] [-Remove]  
### cmdlet to retrieve the configuration of the Microsoft Defender Antivirus manual update settings 
Get-AzsDefenderManualUpdate  

The following procedure shows how to setup Microsoft Defender Antivirus manual update.

  1. Connect to the privileged endpoint and run the following cmdlet to specify the name of the storage blob container where the Defender updates will be uploaded.

    Note

    The manual update process described below only works in disconnected environments where access to "go.microsoft.com" is not allowed. Trying to run the cmdlet Set-AzsDefenderManualUpdate in connected environments will result in an error.

    ### Configure the storage blob container for the Defender updates 
    Set-AzsDefenderManualUpdate -Container <yourContainerName>
    
  2. Download the two Microsoft Defender Antivirus update packages and save them on a location that is reachable from your Azure Stack Hub administration portal.

    Note

    You'll have to download these two files every time you want to update the Defender signatures.

  3. In the administration portal, select All services. Then, under the DATA + STORAGE category, select Storage accounts. (Or, in the filter box, start typing storage accounts, and select it.)

    Azure Stack Hub Defender - all services

  4. In the filter box, type update, and select the updateadminaccount storage account.

  5. In the storage account details, under Services, select Blobs.

    Azure Stack Hub Defender - blob

  6. Under Blob service, select + Container to create a container. Enter the name that was specified with the Set-AzsDefenderManualUpdate (in this example defenderupdates) and then select OK.

    Azure Stack Hub Defender - container

  7. After the container is created, click the container name, and then click Upload to upload the package files to the container.

    Azure Stack Hub Defender - upload

  8. Under Upload blob, click the folder icon, browse to the Microsoft Defender Antivirus update mpam-fe.exe files and then click Open in the file explorer window.

  9. Under Upload blob, click Upload.

    Azure Stack Hub Defender - upload blob1

  10. Repeat steps 8 and 9 for the nis_full.exe file.

    Azure Stack Hub Defender - upload blob2

A scheduled task scans the blob container every 30 minutes and applies any new Microsoft Defender Antivirus package.

Next steps

Learn more about Azure Stack Hub security