microsoft / terraform-provider-power-platform

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

Need ability to retrieve organization (unique) name #471

Closed webstean closed 1 month ago

webstean commented 1 month ago

Description

Enhancement to: data.powerplatform_environments and resource.powerplatform_environment Need ability to retrieve details of the tenancy, for example the xrmtoolkit needs the organization name and domain for its connection string.

Resource

# Sample Terraform config that describes how the new resource might look.

data "powerplatform_environments" "example" {
}

Returns:
name:
domainname:

Definition of Done

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 commented 1 month ago

To do this via the GUI: In the Power Platform admin center, select an environment. Select Settings > Resources > All legacy settings.

For Unified Interface, in the upper-right corner select Settings (Gear button.) > Advanced Settings.

Go to Settings > Customizations > Developer Resources.

Under Instance Reference Information, make note of ID and Unique Name. Unique Name is the organization name.

mattdot commented 1 month ago

Making some edits to this issue because this is about powerplatform_environment and not powerplatform_tenant