fix(domain): added informations about Service Principal permissions o…#806
fix(domain): added informations about Service Principal permissions o…#806CatalinDabuleanu wants to merge 7 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the fabric_domain resource documentation and example to clarify Service Principal permission requirements when managing Fabric Domains. It also records the change in the unreleased changelog.
Changes:
- Added a comment to the
fabric_domainexample Terraform configuration describing required admin API access and Service Principal permissions. - Updated the
fabric_domainresource documentation example with the same permission-related note. - Added a
.changesentry documenting the fix related to Service Principal permissions forfabric_domain(Issue 742).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| examples/resources/fabric_domain/resource.tf | Adds an inline comment to the example Terraform config explaining permission requirements for Service Principals. |
| docs/resources/domain.md | Updates the fabric_domain docs example to include a note about required admin API access and Service Principal permissions. |
| .changes/unreleased/fixed-20260202-014133.yaml | Introduces a changelog entry summarizing the documentation update and linking it to Issue 742. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Minimum allowed line rate is |
…r-fabric into catalindabuleanu/domain-permissions
There was a problem hiding this comment.
So we could split it into 2 notes:
- The first one is whether the resource/data-source uses underlying Admin APIs. if that's true, we should add a note saying
The caller must be a Fabric administrator. - The second one is if the resource/data-source (1) uses underlying Admin APIs, and (2) supports service principal. In that case, we should add another note to link to this documentation https://learn.microsoft.com/en-us/fabric/admin/enable-service-principal-admin-apis#enable-service-principal-authentication
so I would suggest adding one property to the base.go which specifies if the resource/data-source requires the caller to be fabric Admin. e.g., IsAdmin, and add 2 notes (if needed), one based on IsAdmin and the other based on IsAdmin and IsSPNSupported. or maybe you can use the existing note for SP support to add text to it, or if you have other suggestions
…n fabric_domain
📥 Pull Request
❓ What are you trying to address
Added informations about creating a domain using Service Principal