-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
communityRequest or issue originated from a customer or community requestRequest or issue originated from a customer or community requestenhancementNew feature or requestNew feature or requestresourceterraform resourceterraform resource
Description
User Story
I was testing all the tenant settings and it seems like not all settings are yet available to be set using Terraform. The following settings from the PPAC I couldn't set using terraform:
- Additional Copilot feedback
- Tenant Level Analytics
- Auto-claim policies for Power Apps
- Basic Copilot Feedback
- Canvas app insights
- Copilot help assistance in Power Automate via Bing
- Copilot Studio authors
- Customer Lockbox
- Environment routing
- Hosted browser in computer use
- Power Automate flow run resubmission
- Product Feedback - Let Microsoft send surveys to users
- Product Feedback - Allow attachments
- Support Bing search solutions
- Weekly digest (recipients)
Use case:
- We would like to set all tenant settings using Terraform.
Resource
- Resource Name:
powerplatform_tenant_settings - Service Name:
[service name] - Documentation Link: https://registry.terraform.io/providers/microsoft/power-platform/latest/docs/resources/tenant_settings
Potential Terraform Configuration
# Sample Terraform config that describes how the new resource might look.
resource "example_resource" {
name = "example" # required
parameter1 = "value1"
enabled = false
items = toset([
{
name = "item name" # required, must be 3 characters or more
}
])
}
Additional Validation Rules
API documentation
| Action | Verb | URL | Status Codes | Comments |
|---|---|---|---|---|
| Create | POST | /api/v1/resources | 201 | |
| Read | GET | /api/v1/resources/{id} | 200 | |
| Update | PUT | /api/v1/resources/{id} | 200 | |
| Delete | DELETE | /api/v1/resources/{id} | 204 |
JSON
{}Definition of Done
- Data Transfer Objects (dtos) in
dto.go - Resource Model in
model.go - API Client functions in
api_{name}.go - Resource Implementation in
resource_{name}.go - Unit Tests in
resource_{name}_test.gofor Happy Path, Error conditions, boundry cases - Acceptance Tests in
resource_{name}_test.gofor Happy Path - Resource Added to
provider.goandprovider_test.go - Example in the
/examplesfolder - Schema documented using
MarkdownDescription - Change log entry
changie new -k added - Run
make precommitbefore PR
See the contributing guide for more information about what's expected for contributions.
rpothin
Metadata
Metadata
Assignees
Labels
communityRequest or issue originated from a customer or community requestRequest or issue originated from a customer or community requestenhancementNew feature or requestNew feature or requestresourceterraform resourceterraform resource