Skip to content

Commit

Permalink
Merge branch 'main' into enpolat/45-resource-powerplatform_data_record
Browse files Browse the repository at this point in the history
  • Loading branch information
polatengin committed May 30, 2024
2 parents a1df161 + 38c6bb5 commit 01e9d1a
Show file tree
Hide file tree
Showing 67 changed files with 356 additions and 232 deletions.
1 change: 1 addition & 0 deletions .devcontainer/features/local_provider_dev/terraform.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ provider_installation {
"microsoft/power-platform" = "/go/bin"
"hashicorp/azuread" = "/go/bin"
"hashicorp/random" = "/go/bin"
"hashicorp/local" = "/go/bin"
}

# For all other providers, install them directly from their origin provider
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/features/pac/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "pac",
"version": "1.0.2",
"name": "Power Platform CLI",
"documentationURL": "https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction",
"documentationURL": "https://learn.microsoft.com/power-platform/developer/cli/introduction",
"description": "Installs the PAC CLI.",
"options": {},
"containerEnv": {},
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/billing_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_billing_policies Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of billing policies https://learn.microsoft.com/en-us/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy in a tenant. A billing policy is a set of rules that define how a tenant is billed for usage of Power Platform services. A billing policy is associated with a billing instrument, which is a subscription and resource group that is used to pay for usage of Power Platform services.
Fetches the list of billing policies https://learn.microsoft.com/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy in a tenant. A billing policy is a set of rules that define how a tenant is billed for usage of Power Platform services. A billing policy is associated with a billing instrument, which is a subscription and resource group that is used to pay for usage of Power Platform services.
---

# powerplatform_billing_policies (Data Source)

Fetches the list of [billing policies](https://learn.microsoft.com/en-us/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy) in a tenant. A billing policy is a set of rules that define how a tenant is billed for usage of Power Platform services. A billing policy is associated with a billing instrument, which is a subscription and resource group that is used to pay for usage of Power Platform services.
Fetches the list of [billing policies](https://learn.microsoft.com/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy) in a tenant. A billing policy is a set of rules that define how a tenant is billed for usage of Power Platform services. A billing policy is associated with a billing instrument, which is a subscription and resource group that is used to pay for usage of Power Platform services.

## Example Usage

Expand All @@ -33,7 +33,7 @@ data "powerplatform_billing_policies" "all_policies" {}

### Read-Only

- `billing_policies` (Attributes List) [Power Platform Billing Policy](https://learn.microsoft.com/en-us/rest/api/power-platform/licensing/billing-policy/get-billing-policy#billingpolicyresponsemodel) (see [below for nested schema](#nestedatt--billing_policies))
- `billing_policies` (Attributes List) [Power Platform Billing Policy](https://learn.microsoft.com/rest/api/power-platform/licensing/billing-policy/get-billing-policy#billingpolicyresponsemodel) (see [below for nested schema](#nestedatt--billing_policies))
- `id` (Number) Id of the read operation

<a id="nestedatt--billing_policies"></a>
Expand Down
8 changes: 4 additions & 4 deletions docs/data-sources/billing_policies_environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
page_title: "powerplatform_billing_policies_environments Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the environments associated with a billing policy https://learn.microsoft.com/en-us/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy.
This data source uses the List Billing Policy Environments https://learn.microsoft.com/en-us/rest/api/power-platform/licensing/billing-policy-environment/list-billing-policy-environments endpoint in the Power Platform API.
Fetches the environments associated with a billing policy https://learn.microsoft.com/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy.
This data source uses the List Billing Policy Environments https://learn.microsoft.com/rest/api/power-platform/licensing/billing-policy-environment/list-billing-policy-environments endpoint in the Power Platform API.
---

# powerplatform_billing_policies_environments (Data Source)

Fetches the environments associated with a [billing policy](https://learn.microsoft.com/en-us/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy).
Fetches the environments associated with a [billing policy](https://learn.microsoft.com/power-platform/admin/pay-as-you-go-overview#what-is-a-billing-policy).

This data source uses the [List Billing Policy Environments](https://learn.microsoft.com/en-us/rest/api/power-platform/licensing/billing-policy-environment/list-billing-policy-environments) endpoint in the Power Platform API.
This data source uses the [List Billing Policy Environments](https://learn.microsoft.com/rest/api/power-platform/licensing/billing-policy-environment/list-billing-policy-environments) endpoint in the Power Platform API.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/connectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subcategory: ""
description: |-
Fetches the list of available connectors within a specific Power Platform tenant. Each connector represents a service that can be used to enhance the capabilities of Power Apps, Power Automate, and Power Virtual Agents. The returned list includes both standard and custom connectors, providing a comprehensive view of the services that can be integrated into your Power Platform solutions. The list can be used to understand what services are readily available for use within your tenant, and can assist in planning and developing new applications or flows. It's important to note that the availability of connectors may vary based on the specific licenses and permissions assigned within your tenant.
Additional Resources:
Connectors Overview https://learn.microsoft.com/en-us/connectors/connectors
Connectors Overview https://learn.microsoft.com/connectors/connectors
---

# powerplatform_connectors (Data Source)
Expand All @@ -14,7 +14,7 @@ Fetches the list of available connectors within a specific Power Platform tenant

Additional Resources:

* [Connectors Overview](https://learn.microsoft.com/en-us/connectors/connectors)
* [Connectors Overview](https://learn.microsoft.com/connectors/connectors)

## Example Usage

Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/currencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_currencies Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of available Dynamics 365 currencies. For more information see Power Platform Currencies https://learn.microsoft.com/en-us/power-platform/admin/manage-transactions-with-multiple-currencies
Fetches the list of available Dynamics 365 currencies. For more information see Power Platform Currencies https://learn.microsoft.com/power-platform/admin/manage-transactions-with-multiple-currencies
---

# powerplatform_currencies (Data Source)

Fetches the list of available Dynamics 365 currencies. For more information see [Power Platform Currencies](https://learn.microsoft.com/en-us/power-platform/admin/manage-transactions-with-multiple-currencies)
Fetches the list of available Dynamics 365 currencies. For more information see [Power Platform Currencies](https://learn.microsoft.com/power-platform/admin/manage-transactions-with-multiple-currencies)

## Example Usage

Expand All @@ -22,7 +22,7 @@ terraform {
}
provider "powerplatform" {
use_client = true
use_cli = true
}
data "powerplatform_locations" "all_locations" {}
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/data_loss_prevention_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_data_loss_prevention_policies Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See Manage data loss prevention policies https://learn.microsoft.com/en-us/power-platform/admin/prevent-data-loss for more information.
Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See Manage data loss prevention policies https://learn.microsoft.com/power-platform/admin/prevent-data-loss for more information.
---

# powerplatform_data_loss_prevention_policies (Data Source)

Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See [Manage data loss prevention policies](https://learn.microsoft.com/en-us/power-platform/admin/prevent-data-loss) for more information.
Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See [Manage data loss prevention policies](https://learn.microsoft.com/power-platform/admin/prevent-data-loss) for more information.



Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environment_application_packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ page_title: "powerplatform_environment_application_packages Data Source - powerp
subcategory: ""
description: |-
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 https://learn.microsoft.com/en-us/power-platform/admin/manage-apps#environment-level-view-of-apps in the Power Platform Admin Center or the pac application list command from Power Platform CLI https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/application#pac-application-list. This data source uses the Get Environment Application Package https://learn.microsoft.com/en-us/rest/api/power-platform/appmanagement/applications/get-environment-application-package endpoint in the Power Platform API.
This is functionally equivalent to the Environment-level view of apps https://learn.microsoft.com/power-platform/admin/manage-apps#environment-level-view-of-apps in the Power Platform Admin Center or the pac application list command from Power Platform CLI https://learn.microsoft.com/power-platform/developer/cli/reference/application#pac-application-list. This data source uses the Get Environment Application Package https://learn.microsoft.com/rest/api/power-platform/appmanagement/applications/get-environment-application-package endpoint in the Power Platform API.
---

# 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](https://learn.microsoft.com/en-us/power-platform/admin/manage-apps#environment-level-view-of-apps) in the Power Platform Admin Center or the [`pac application list` command from Power Platform CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/application#pac-application-list). This data source uses the [Get Environment Application Package](https://learn.microsoft.com/en-us/rest/api/power-platform/appmanagement/applications/get-environment-application-package) endpoint in the Power Platform API.
This is functionally equivalent to the [Environment-level view of apps](https://learn.microsoft.com/power-platform/admin/manage-apps#environment-level-view-of-apps) in the Power Platform Admin Center or the [`pac application list` command from Power Platform CLI](https://learn.microsoft.com/power-platform/developer/cli/reference/application#pac-application-list). This data source uses the [Get Environment Application Package](https://learn.microsoft.com/rest/api/power-platform/appmanagement/applications/get-environment-application-package) endpoint in the Power Platform API.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environment_powerapps.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_environment_powerapps Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of Power Apps in an environment. See Manage Power Apps https://learn.microsoft.com/en-us/power-platform/admin/admin-manage-apps for more details about how this data is surfaced in Power Platform Admin Center.
Fetches the list of Power Apps in an environment. See Manage Power Apps https://learn.microsoft.com/power-platform/admin/admin-manage-apps for more details about how this data is surfaced in Power Platform Admin Center.
---

# powerplatform_environment_powerapps (Data Source)

Fetches the list of Power Apps in an environment. See [Manage Power Apps](https://learn.microsoft.com/en-us/power-platform/admin/admin-manage-apps) for more details about how this data is surfaced in Power Platform Admin Center.
Fetches the list of Power Apps in an environment. See [Manage Power Apps](https://learn.microsoft.com/power-platform/admin/admin-manage-apps) for more details about how this data is surfaced in Power Platform Admin Center.

## Example Usage

Expand Down
14 changes: 7 additions & 7 deletions docs/data-sources/environment_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_environment_settings Data Source - powerplatform"
subcategory: ""
description: |-
Power Platform Environment Settings Data Source. Power Platform Settings are configuration options that apply to a specific environment. They control various aspects of Power Platform features and behaviors, See Environment Settings Overview https://learn.microsoft.com/en-us/power-platform/admin/admin-settings for more details.
Power Platform Environment Settings Data Source. Power Platform Settings are configuration options that apply to a specific environment. They control various aspects of Power Platform features and behaviors, See Environment Settings Overview https://learn.microsoft.com/power-platform/admin/admin-settings for more details.
---

# powerplatform_environment_settings (Data Source)

Power Platform Environment Settings Data Source. Power Platform Settings are configuration options that apply to a specific environment. They control various aspects of Power Platform features and behaviors, See [Environment Settings Overview](https://learn.microsoft.com/en-us/power-platform/admin/admin-settings) for more details.
Power Platform Environment Settings Data Source. Power Platform Settings are configuration options that apply to a specific environment. They control various aspects of Power Platform features and behaviors, See [Environment Settings Overview](https://learn.microsoft.com/power-platform/admin/admin-settings) for more details.



Expand All @@ -34,8 +34,8 @@ Power Platform Environment Settings Data Source. Power Platform Settings are con

Optional:

- `audit_settings` (Attributes) Audit Settings. See [Audit Settings Overview](https://learn.microsoft.com/en-us/power-platform/admin/system-settings-dialog-box-auditing-tab) for more details. (see [below for nested schema](#nestedatt--audit_and_logs--audit_settings))
- `plugin_trace_log_setting` (String) Plugin trace log setting. Available options: Off, Exception, All. See [Plugin Trace Log Settings Overview](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/logging-tracing) for more details.
- `audit_settings` (Attributes) Audit Settings. See [Audit Settings Overview](https://learn.microsoft.com/power-platform/admin/system-settings-dialog-box-auditing-tab) for more details. (see [below for nested schema](#nestedatt--audit_and_logs--audit_settings))
- `plugin_trace_log_setting` (String) Plugin trace log setting. Available options: Off, Exception, All. See [Plugin Trace Log Settings Overview](https://learn.microsoft.com/power-apps/developer/data-platform/logging-tracing) for more details.

<a id="nestedatt--audit_and_logs--audit_settings"></a>
### Nested Schema for `audit_and_logs.audit_settings`
Expand All @@ -53,7 +53,7 @@ Optional:

Optional:

- `email_settings` (Attributes) Email Settings. See [Email Settings Overview](https://learn.microsoft.com/en-us/power-platform/admin/settings-email) for more details. (see [below for nested schema](#nestedatt--email--email_settings))
- `email_settings` (Attributes) Email Settings. See [Email Settings Overview](https://learn.microsoft.com/power-platform/admin/settings-email) for more details. (see [below for nested schema](#nestedatt--email--email_settings))

<a id="nestedatt--email--email_settings"></a>
### Nested Schema for `email.email_settings`
Expand All @@ -69,8 +69,8 @@ Optional:

Optional:

- `behavior_settings` (Attributes) Behavior Settings.See [Behavior Settings Overview](https://learn.microsoft.com/en-us/power-platform/admin/settings-behavior) for more details. (see [below for nested schema](#nestedatt--product--behavior_settings))
- `features` (Attributes) Features. See [Features Overview](https://learn.microsoft.com/en-us/power-platform/admin/settings-features) for more details. (see [below for nested schema](#nestedatt--product--features))
- `behavior_settings` (Attributes) Behavior Settings.See [Behavior Settings Overview](https://learn.microsoft.com/power-platform/admin/settings-behavior) for more details. (see [below for nested schema](#nestedatt--product--behavior_settings))
- `features` (Attributes) Features. See [Features Overview](https://learn.microsoft.com/power-platform/admin/settings-features) for more details. (see [below for nested schema](#nestedatt--product--features))

<a id="nestedatt--product--behavior_settings"></a>
### Nested Schema for `product.behavior_settings`
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_environments Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of environments in a tenant. See Environments overview https://learn.microsoft.com/en-us/power-platform/admin/environments-overview for more information.
Fetches the list of environments in a tenant. See Environments overview https://learn.microsoft.com/power-platform/admin/environments-overview for more information.
---

# powerplatform_environments (Data Source)

Fetches the list of environments in a tenant. See [Environments overview](https://learn.microsoft.com/en-us/power-platform/admin/environments-overview) for more information.
Fetches the list of environments in a tenant. See [Environments overview](https://learn.microsoft.com/power-platform/admin/environments-overview) for more information.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_languages Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of Dynamics 365 languages. For more information see Power Platform Enable Languages https://learn.microsoft.com/en-us/power-platform/admin/enable-languages
Fetches the list of Dynamics 365 languages. For more information see Power Platform Enable Languages https://learn.microsoft.com/power-platform/admin/enable-languages
---

# powerplatform_languages (Data Source)

Fetches the list of Dynamics 365 languages. For more information see [Power Platform Enable Languages](https://learn.microsoft.com/en-us/power-platform/admin/enable-languages)
Fetches the list of Dynamics 365 languages. For more information see [Power Platform Enable Languages](https://learn.microsoft.com/power-platform/admin/enable-languages)

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "powerplatform_locations Data Source - powerplatform"
subcategory: ""
description: |-
Fetches the list of available Dynamics 365 locations. For more information see Power Platform Geos https://learn.microsoft.com/en-us/power-platform/admin/regions-overview
Fetches the list of available Dynamics 365 locations. For more information see Power Platform Geos https://learn.microsoft.com/power-platform/admin/regions-overview
---

# powerplatform_locations (Data Source)

Fetches the list of available Dynamics 365 locations. For more information see [Power Platform Geos](https://learn.microsoft.com/en-us/power-platform/admin/regions-overview)
Fetches the list of available Dynamics 365 locations. For more information see [Power Platform Geos](https://learn.microsoft.com/power-platform/admin/regions-overview)

## Example Usage

Expand Down
Loading

0 comments on commit 01e9d1a

Please sign in to comment.