Manually install the extension using the Azure CLI

You can manually install the Tanium Client Azure Arc extension on an existing Arc-connected machine using the az connectedmachine extension create command.

For more information about managing extensions on Arc-connected machines, see Microsoft Azure Documentation: Manage VM extensions with Azure CLI.

For the properties to use in the command, see Resource properties for the Tanium Client Azure Arc extension and Tanium Client Azure Arc extension properties.

The following example shows how to install the Tanium Client Azure Arc extension on an Arc-connected machine using the Azure CLI:

  1. Open a terminal on a machine that you can use to connect to your Microsoft Azure subscription using the CLI.
  2. Navigate to the directory where you downloaded the tanium-init.dat file that you obtained in Prerequisites.
  3. Run the following command: az login
  4. Run the following command: az account set --subscription <azure subscription> where <azure subscription> is the name of your Microsoft Azure subscription.
  5. Run the following command:
    1. For Windows:

      JSON
      # Encode the file in base64
      $base64_tanium_init_dat = [Convert]::ToBase64String([IO.File]::ReadAllBytes("./tanium-init.dat"))
      
      # Construct the JSON string for protected settings
      $protectedSettings = @{
      TaniumInitDat = $base64_tanium_init_dat
      } | ConvertTo-Json -Compress
      
      # Run the Azure CLI command
      
      az connectedmachine extension create \
      --resource-group "<your-resource-group>" \
      --machine-name "<your-machine>" \
      --name TaniumClientWindows \
      --publisher Tanium.Client \
      --type TaniumClientWindows \
      --type-handler-version <current-version> \
      --location <your-azure-region>\
      --protected-settings $protectedSettings
    2. For Linux:

      JSON
      # Encode the file in base64
      base64_tanium_init_dat=$(base64 -w 0 ./tanium-init.dat)
      
      # Construct the JSON string for protected settings
      protectedSettings=$(cat <<EOF
      {"TaniumInitDat": "$base64_tanium_init_dat"}
      EOF
      )
      
      # Run the Azure CLI command
      az connectedmachine extension create \
      --resource-group "<your-resource-group>" \
      --machine-name "<your-machine>" \
      --name TaniumClientLinux \
      --publisher Tanium.Client \
      --type TaniumClientLinux \
      --type-handler-version <current-version> \
      --location <your-azure-region>\
      --protected-settings $protectedSettings
  6. Verify the installation.