CLI Commands

cnspec integrate ms365

Onboard a Microsoft 365 tenant into Mondoo Platform for continuous scanning.

Connect your Microsoft 365 environment to Mondoo Platform. The Azure account that runs the command needs the Global Reader role in Microsoft Entra ID. To learn about the full setup, read Automated setup.

cnspec integrate ms365 --space SPACE_ID --output OUTPUT_DIR --integration-name NAME

The flags are optional. The automation creates an Entra app registration named mondoo_ms365. To use a different name, for example when a tenant holds more than one Mondoo integration, set --app-registration-name:

cnspec integrate ms365 --app-registration-name mondoo_ms365_lunalectric

Options

      --app-registration-name string   Set the display name of the Entra app registration (default "mondoo_ms365")
  -h, --help                           help for ms365

Options inherited from parent commands

      --api-proxy string          Set the proxy for communications with Mondoo Platform API
      --auto-update               Enable automatic provider installation and update (default true)
      --config string             Set config file path (default $HOME/.config/mondoo/mondoo.yml)
      --integration-name string   Set the name of the integration
      --log-level string          Set the log level: error, warn, info, debug, trace (default "info")
      --logging-config string     Path to a logging configuration file (YAML or JSON) that selects the log writer, level, and writer-specific options
      --output string             Set the location to write automation code
      --space string              Set the space to create the integration
      --strict                    Default MQL strict mode for policies that do not declare one: every link in an MQL chain must resolve
  -v, --verbose                   Enable verbose output

SEE ALSO

  • cnspec integrate - Onboard integrations for continuous scanning into the Mondoo Platform

On this page