Prerequisites for Intune functionality

Prerequisites for Intune functionality

NOTE

The Chocolatey Intune integration shipped as part of v3.0.0 of the Chocolatey Licensed Extension.

NOTE

The Chocolatey Intune integration requires a valid Chocolatey for Business or Chocolatey for Business Trial license.

Chocolatey Configuration

NOTE

As the Intune commands are in preview, ensure you enable the allowPreviewFeatures feature by using the command:

choco feature enable --name=allowPreviewFeatures

The Intune commands need to know what your Intune tenant is, and there are two options:

  1. Specify the tenant each time you push a package using the --source switch;
  2. Store the tenant information in the Chocolatey configuration using the command choco config set --name=intuneTenantGUID --value=<INTUNE TENANT GUID>. The GUID is available on the Azure AD Application page.

Chocolatey Packages

To push packages for the first time, you will need all of the Chocolatey products to be in the same directory as the Chocolatey package you want to push. If you don’t already have these downloaded, you can download it to the current directory with the command:

  • If you are using an Architect license, run choco download chocolatey chocolatey.extension chocolateygui --ignore-dependencies
  • If you are using a Business license, run choco download chocolatey chocolatey.extension chocolateygui chocolateygui.extension chocolatey-agent --ignore-dependencies

Additionally, it is recommended to have already installed the Chocolatey packages intunewinapputil and azcopy10 before converting or pushing other Chocolatey packages. If these do not exist, Chocolatey will try to install them from available sources.