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 operationname
(String) Name of the Dynamics 365 applicationpublisher_name
(String) Publisher Name of the Dynamics 365 applicationtimeouts
(Attributes) (see below for nested schema)
Read-Only
applications
(Attributes List) List of Applications (see below for nested schema)
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) ApplicaitonIdapplication_name
(String) Nameapplication_visibility
(String) Application Visibilitydescription
(String) Localized Descriptionlearn_more_url
(String) Learn More Urlpublisher_id
(String) Publisher Idpublisher_name
(String) Publisher Namestate
(String) Stateunique_name
(String) Unique Nameversion
(String) Version