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

Improve documentation around powerplatform_environment_application_package_install (resource) #441

Open
webstean opened this issue Sep 16, 2024 · 2 comments
Assignees

Comments

@webstean
Copy link
Contributor

webstean commented Sep 16, 2024

Description

Apparently, this resource is intended to be used for install of "Dynamics 365 Apps" which are separate from solutions. These "apps" can be inbuilt or available from Microsoft AppSource. Currently does not mention AppSource, so we need to know how to install "Dynamics 365 Apps" from AppSource. The supplied example is also not very clear on how to leverage this resource.

There also may be dependency on the "Enable Dynamics 365 apps" option being set when the environment is first created.

Definition of Done

  • [X ] Users should be able to use the documentation to complete a task

Contributions

Do you plan to raise a PR to address this issue? NO

See the contributing guide for more information about what's expected for contributions.

@webstean
Copy link
Contributor Author

For example, I would expect this to work:

resource "powerplatform_environment_application_package_install" "install_sample_application" {
  for_each = { for k, v in powerplatform_environment.environments : k => v if k == "coe" }

  environment_id = each.value.id
  unique_name    = "Creator Kit"
}

but it doesn't and errors with:

╷
│ Error: Client error when creating powerplatform
│ 
│   with powerplatform_environment_application_package_install.install_sample_application["coe"],
│   on powerapps-solutions-coe.tf line 275, in resource "powerplatform_environment_application_package_install" "install_sample_application":
│  275: resource "powerplatform_environment_application_package_install" "install_sample_application" {
│ 
│ status: 400, message: {"StatusCode":400,"Message":"Package requested for
│ installation was not found"}
╵

@mawasile mawasile changed the title Improve documentation around powerplatform_environment_application_package_instal (resource) Improve documentation around powerplatform_environment_application_package_install (resource) Sep 16, 2024
@mawasile mawasile self-assigned this Sep 30, 2024
@mawasile
Copy link
Contributor

mawasile commented Oct 9, 2024

each region has a different set of apps to install, for example the Europe region has the Creator Kit app available but Germany or Switzerland do not.
Please validate, that the environment that you are iterating over are in regions that do have Creator Kit available to install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants