You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#423](https://github.com/microsoft/terraform-provider-power-platform/issues/423) adding powerplatform_environment_group_rule_set. **Currently not supported when using service principal authentication**
6
+
7
+
### 🪲 Fixed
8
+
9
+
*[#499](https://github.com/microsoft/terraform-provider-power-platform/issues/499) Fixing issue that dlp policies does not apply all connectors and require reapply
10
+
*[#502](https://github.com/microsoft/terraform-provider-power-platform/issues/502) powerplatform_environment fixed error during environment update when a custom domain is set
11
+
12
+
### 📚 Documentation
13
+
14
+
*[#414](https://github.com/microsoft/terraform-provider-power-platform/issues/414) Improved documentation of `data_record` with examples for app users, business units, teams, and roles
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,21 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
7
7
and is generated by [Changie](https://github.com/miniscruff/changie).
8
8
9
9
10
+
## 3.2.0 - 2024-10-29
11
+
12
+
### ✨ Added
13
+
14
+
*[#423](https://github.com/microsoft/terraform-provider-power-platform/issues/423) adding powerplatform_environment_group_rule_set. **Currently not supported when using service principal authentication**
15
+
16
+
### 🪲 Fixed
17
+
18
+
*[#499](https://github.com/microsoft/terraform-provider-power-platform/issues/499) Fixing issue that dlp policies does not apply all connectors and require reapply
19
+
*[#502](https://github.com/microsoft/terraform-provider-power-platform/issues/502) powerplatform_environment fixed error during environment update when a custom domain is set
20
+
21
+
### 📚 Documentation
22
+
23
+
*[#414](https://github.com/microsoft/terraform-provider-power-platform/issues/414) Improved documentation of `data_record` with examples for app users, business units, teams, and roles
Copy file name to clipboardExpand all lines: docs/guides/app_registration.md
+27-98Lines changed: 27 additions & 98 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ description: |-
7
7
8
8
# Creating an App Registration to use the Power Platform Provider
9
9
10
-
You can follow this [guide](https://learn.microsoft.com/entra/identity-platform/quickstart-register-app#register-an-application) to create an app registration.
10
+
The following steps will guide you through the process of manually creating an App Registration in Azure Active Directory to use the Power Platform Provider, but if you would like a script to run, see the [bootstrap scripts in the Power Platform QuickStarts](https://github.com/microsoft/power-platform-terraform-quickstarts/blob/main/bootstrap/tenant-configuration/main.tf)
11
+
12
+
## Register an Application
13
+
14
+
[The basics of how to create an app registration in Entra](https://learn.microsoft.com/entra/identity-platform/quickstart-register-app#register-an-application) are covered in Entra documentation. Familiarize yourself with the process and then follow the steps below to create an app registration for the Power Platform Provider.
11
15
12
16
## API Permissions
13
17
@@ -23,87 +27,40 @@ Following API permissions are required to use the Terraform Power Platform provi
23
27
- Licensing.Allocations.ReadWrite
24
28
- Licensing.BillingPolicies.Read
25
29
- Licensing.BillingPolicies.ReadWrite
26
-
- Licensing.IsvContracts.Read
27
-
- Licensing.IsvContracts.ReadWrite
30
+
- PowerApps.Apps.Play
31
+
- PowerApps.Apps.Read
32
+
- EnvironmentManagement.Environments.Read
33
+
- EnvironmentManagement.Groups.Read
34
+
- EnvironmentManagement.Groups.ReadWrite
35
+
- EnvironmentManagement.Settings.Read
36
+
- EnvironmentManagement.Settings.ReadWrite
28
37
29
38
- PowerApps Service
30
39
- User
31
40
32
-
Or you can add them directly into your App Registration manifest:
!> Note: If you don't see Power Platform API showing up in the list when searching by GUID, it's possible that you still have access to it but the visibility isn't refreshed. To force a refresh run the below PowerShell script:
>! Note: The `resourceAppId` values are the application IDs of the services in the Public cloud. If you are using a sovereign cloud, you will need to use the appropriate application IDs for those services.
51
+
!> Note: The `resourceAppId` values are the application IDs of the services in the Public cloud. If you are [using a sovereign cloud](./nonpublic_clouds.md) the IDs will be different and you will need to use the appropriate application IDs for those services.
95
52
96
53
## Expose API
97
54
98
-
In "Expose API" menu of your App Registration, you need to define your application ID URI:
55
+
In "Expose an API" menu of your App Registration, you need to define your application ID URI:
99
56
100
57
- Application ID URI: `api://<client_id>`, for example:
1. User consent description: `Allows connection to backend services of Power Platform Terraform Provider`
114
71
1. State: `Enabled`
115
72
116
-
Or you can add them directly into your App Registration manifest:
117
-
118
-
```json
119
-
"oauth2Permissions": [
120
-
{
121
-
"adminConsentDescription": "Allows connection to backend services of Power Platform Terraform Provider",
122
-
"adminConsentDisplayName": "Work with Power Platform Terraform Provider",
123
-
"id": "2aedce72-ddc7-431d-920c-a321297ffdc2",
124
-
"isEnabled": true,
125
-
"lang": null,
126
-
"origin": "Application",
127
-
"type": "User",
128
-
"userConsentDescription": "Allows connection to backend services of Power Platform Terraform Provider",
129
-
"userConsentDisplayName": "Work with Power Platform Terraform Provider",
130
-
"value": "access"
131
-
}
132
-
],
133
-
```
73
+
### Authorizing client applications
134
74
135
-
- You will finially need to preuthorize Azure CLI to access your API by adding client application `04b07795-8ddb-461a-bbee-02f9e1bf7b46`
136
-
137
-
Or you can add them directly into your App Registration manifest:
138
-
139
-
```json
140
-
"preAuthorizedApplications": [
141
-
{
142
-
"appId": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
143
-
"permissionIds": [
144
-
"2aedce72-ddc7-431d-920c-a321297ffdc2"
145
-
]
146
-
}
147
-
]
148
-
```
75
+
You will finially need to preuthorize Azure CLI to access your API by adding client application `04b07795-8ddb-461a-bbee-02f9e1bf7b46`
149
76
150
77
## Usage
151
78
@@ -154,3 +81,5 @@ After above steps you should be able to authenticate using Azure CLI:
154
81
```bash
155
82
az login --scope api://powerplatform_provider_terraform/.default
156
83
```
84
+
85
+
If your tenant doesn't have any Azure subscriptions, you can use the `--allow-no-subscriptions` flag to login. If you are working in a web-based devcontainer and you need more control over the interactive login process you can use the `--use-device-code` flag.
Copy file name to clipboardExpand all lines: docs/index.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ terraform {
23
23
required_providers {
24
24
powerplatform = {
25
25
source = "microsoft/power-platform"
26
-
version = "~> 1.0" # Replace with the latest version
26
+
version = "~> 3.1" # Replace with the latest version
27
27
}
28
28
}
29
29
}
@@ -176,7 +176,7 @@ In addition to the authentication options, the following options are also suppor
176
176
177
177
| Name | Description | Default Value |
178
178
|------|-------------|---------------|
179
-
| `telemetry_optout` | Opting out of telemetry will remove the hostheader from the requests made to the Power Platform service. There is no other telemetry data collected by the provider. This may affect the ability to identify and troubleshoot issues with the provider. | `false` |
179
+
| `telemetry_optout` | Opting out of telemetry will remove the hostheader and session id headers from the requests made to the Power Platform service. There is no other telemetry data collected by the provider. This may affect the ability to identify and troubleshoot issues with the provider. | `false` |
180
180
181
181
## Resources and Data Sources
182
182
@@ -188,6 +188,11 @@ Use the navigation to the left to read about the available resources and data so
188
188
189
189
More detailed examples can be found in the [Power Platform Terraform Quickstarts](https://github.com/microsoft/power-platform-terraform-quickstarts) repo. This repo contains a number of examples for using the Power Platform provider to manage environments and other resources within Power Platform along with Azure and Entra.
190
190
191
+
## Releases
192
+
193
+
A full list of released versions of the Power Platform Terraform Provider can be found [here](https://github.com/microsoft/terraform-provider-power-platform/releases). Starting from v3.0.0, a summary of the changes to the provider in each release are documented the [CHANGELOG.md file in the GitHub repository](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md). This provider follows Semantic Versioning forreleases. The provider version is incremented based on the type of changes includedin the release.
194
+
195
+
191
196
## Contributing
192
197
193
198
Contributions to this provider are always welcome! Please see the [Contribution Guidelines](https://github.com/microsoft/terraform-provider-power-platform/)
0 commit comments