microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 14 forks source link

Environments data source should not raise warnings for environments without Dataverse instances #371

Closed mattdot closed 4 months ago

mattdot commented 4 months ago

Describe the bug

The environments data source should not raise warnings for environments without dataverse instances.

Warning: Error when reading default currency for environment Default-a9c0efbb-1d71-40c4-b16a-48fb814a7ad5 │ │ with module.test_app_user.data.powerplatform_environments.envs, │ on ../../modules/res_application_user/main.tf line 6, in data "powerplatform_environments" "envs": │ 6: data "powerplatform_environments" "envs" { │ │ AzureCLICredential: ERROR: AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope https:///.default offline_access openid │ profile is not valid. The scope format is invalid. Scope must be in a valid URI form https://example/scope or a valid Guid <guid/scope>. Trace ID: f3fe6078-00f0-4f33-b1f9-9d3120685700 Correlation ID: │ 14de911e-57b3-4551-92c4-bf3a5e5f1b34 Timestamp: 2024-07-18 23:29:41Z │ Interactive authentication is needed. Please run: │ az login --scope https:///.default

To Reproduce Sample Terraform Code

If applicable, add terraform code to help explain your problem.

REMINDER: REMOVE SENSITIVE DATA SUCH AS SECRETS, USER NAMES, EMAILS, TENANT INFORMATION, ETC.


data "powerplatform_environments" "envs" {
}

Expected behavior

Should return a list of powerplatform environments without warnings

System Information

Additional context

Add any other context about the problem here.

Contribution

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