powerplatform_environment_application_packages (Data Source)

Fetches the list of Dynamics 365 applications in a tenant. The data source can be filtered by name and publisher name.

This is functionally equivalent to the Environment-level view of apps in the Power Platform Admin Center or the pac application list command from Power Platform CLI. This data source uses the Get Environment Application Package endpoint in the Power Platform API.

Example Usage

terraform {
  required_providers {
    powerplatform = {
      source = "microsoft/power-platform"
    }
  }
}

provider "powerplatform" {
  use_cli = true
}

data "powerplatform_environments" "all_environments" {}

data "powerplatform_environment_application_packages" "all_applications" {
  environment_id = data.powerplatform_environments.all_environments.environments[0].id
}

data "powerplatform_environment_application_packages" "all_applications_from_publisher" {
  environment_id = data.powerplatform_environments.all_environments.environments[0].id
  publisher_name = "Power Platform Host Service"
}

data "powerplatform_environment_application_packages" "specific_application" {
  environment_id = data.powerplatform_environments.all_environments.environments[0].id
  publisher_name = "Microsoft Dynamics 365"
  name           = "Virtual connectors in Dataverse"
}

Schema

Required

  • environment_id (String) Id of the Dynamics 365 environment

Optional

  • id (String) Id of the read operation
  • name (String) Name of the Dynamics 365 application
  • publisher_name (String) Publisher Name of the Dynamics 365 application
  • timeouts (Attributes) (see below for nested schema)

Read-Only

Nested Schema for timeouts

Optional:

  • read (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.

Nested Schema for applications

Read-Only:

  • application_id (String) ApplicaitonId
  • application_name (String) Name
  • application_visibility (String) Application Visibility
  • description (String) Localized Description
  • learn_more_url (String) Learn More Url
  • publisher_id (String) Publisher Id
  • publisher_name (String) Publisher Name
  • state (String) State
  • unique_name (String) Unique Name
  • version (String) Version