Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerplatform_environment_application_package DataSource #101

Closed
polatengin opened this issue Oct 10, 2023 · 1 comment
Closed

powerplatform_environment_application_package DataSource #101

polatengin opened this issue Oct 10, 2023 · 1 comment
Assignees
Labels
data source data source documentation Improvements or additions to documentation
Milestone

Comments

@polatengin
Copy link
Contributor

Design Proposal

Sample page;

https://admin.powerplatform.microsoft.com/resources/applications

image

Requirements

Users should be able to

  • get list of applications available on an environment
  • filter applications using
    • environment_id (datatype: guid)
    • environment_name (datatype: string)

Application data structure should at least provide the following fields

  • id
  • name
  • environment_id
  • environment_name

Proposed Solution

Scenario: As a user, I should be able to get list of all applications on an environment

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

data "powerplatform_applications" "applications_by_environment_id" {
  environment_id = "00000000-0000-0000-0000-000000000000"
}

Scenario: As a user, I should be able to filter applications

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

data "powerplatform_environments" "applications_by_status" {
  environment_id = "00000000-0000-0000-0000-000000000000"
  status = "installed"
}

Notes

Provider will fetch all the applications available on the target environment, then filter them based on the filters provided and returned to user

Provider doesn't support CREATE, UPDATE and DELETE methods

Authentication

API Endpoints

Official documentation can be found on; https://learn.microsoft.com/en-us/rest/api/power-platform/appmanagement/applications/get-environment-application-package

https://api.powerplatform.com will be used to communicate to PowerPlatform Api

  • GET all applications: /appmanagement/environments/{ENVIRONMENT_ID}/applicationPackages
@polatengin polatengin added the documentation Improvements or additions to documentation label Oct 10, 2023
@polatengin polatengin self-assigned this Oct 10, 2023
@mattdot mattdot added resource terraform resource data source data source labels Oct 12, 2023
@mattdot mattdot changed the title Application Resource and DataSource Application Package Resource and DataSource Oct 12, 2023
@mattdot mattdot removed the resource terraform resource label Oct 12, 2023
@mattdot mattdot changed the title Application Package Resource and DataSource Application Package DataSource Oct 12, 2023
@mattdot mattdot changed the title Application Package DataSource powerplatform_environment_application_package DataSource Oct 12, 2023
@leighatami leighatami added this to the GA milestone Nov 7, 2023
@polatengin
Copy link
Contributor Author

it seems I forgot to close this issue when this PR #123 merged..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data source data source documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants