Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerplatform_tenant_isolation_policy resource #612

Open
10 tasks
mattdot opened this issue Mar 3, 2025 · 0 comments · May be fixed by #618
Open
10 tasks

powerplatform_tenant_isolation_policy resource #612

mattdot opened this issue Mar 3, 2025 · 0 comments · May be fixed by #618
Assignees
Labels
community Request or issue originated from a customer or community request enhancement New feature or request resource terraform resource

Comments

@mattdot
Copy link
Member

mattdot commented Mar 3, 2025

Description

Tenant isolation can be used to block external tenants from establishing connections into your tenant (inbound isolation) as well as block your tenant from establishing connections to external tenants (outbound isolation). Learn more

Resource

  • Resource Name: powerplatform_tenant_isolation_policy
  • API documentation:
  • API:
    • PUT https://api.bap.microsoft.com/providers/PowerPlatform.Governance/v1/tenants/<guid>/tenantIsolationPolicy
  • Estimated complexity/effort: easy
  • Related resources/data sources: powerplatform_tenant client can get you the current tenant.

Potential Terraform Configuration

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

resource "powerplatform_tenant_isolation_policy" {
  is_disabled = false
  allowed_tenants = toset([
{ 
  tenant_id = ""
  inbound = true
  outbound = false
])
  

Validation:

  • tenant_id should be at least 1 character long
  • validation rule for not both being false.

JSON

{"properties":{"tenantId":"00000000000000000000000","isDisabled":false,"allowedTenants":[{"tenantId":"*","direction":{"inbound":true,"outbound":true}}]}}

Definition of Done

  • Data Transfer Objects (dtos)
  • Data Client functions
  • Resource Implementation
  • Resource Added to Provider
  • Unit Tests for Happy Path
  • Unit Tests for error path
  • Acceptance Tests
  • Example in the /examples folder
  • Schema Documentation in code
  • Updated auto-generated provider docs with make docs

Contributions

Do you plan to raise a PR to address this issue? YES / NO?

See the contributing guide for more information about what's expected for contributions.

@mattdot mattdot added enhancement New feature or request resource terraform resource community Request or issue originated from a customer or community request labels Mar 3, 2025
@mattdot mattdot self-assigned this Mar 4, 2025
@mattdot mattdot linked a pull request Mar 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Request or issue originated from a customer or community request enhancement New feature or request resource terraform resource
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant