Skip to content

Eduardodfmex/718 example resource powerplatform enterprise policy doesn't work #728

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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

eduardodfmex
Copy link
Contributor

This pull request refactors and updates Terraform configurations for Power Platform enterprise policies by modularizing variable definitions, upgrading provider versions, and restructuring resources. The most significant changes include moving variable definitions to separate files, upgrading required provider versions, and restructuring the network_injection policy to improve modularity and maintainability.

Provider Updates

  • Updated provider versions in main.tf files across multiple modules to ensure compatibility and leverage new features:
    • powerplatform upgraded to ~>3.5.0. [1] [2] [3]
    • azapi upgraded to ~>2.2.0. [1] [2]
    • azurerm upgraded to ~>4.16.0. [1] [2]
    • Added time provider with version >= 0.7.0 in encryption/main.tf.

Variable Refactoring

  • Moved variable definitions from main.tf to dedicated variables.tf files for better modularity and reusability:
    • encryption module variables moved to variables.tf.
    • network_injection module variables moved to variables.tf.

Resource and Module Restructuring

  • Restructured the network_injection policy:
    • Removed the powerplatform_enterprise_policy resource from network_injection/main.tf.
    • Added a new powerplatform_enterprise_policy resource in resource.tf to centralize policy creation.
    • Updated the network_injection module to exclude environment_id.

Outputs

  • Added new outputs to the network_injection module for better visibility of created resources:
    • policy_system_id and policy_id outputs defined in outputs.tf.

@eduardodfmex eduardodfmex linked an issue Apr 25, 2025 that may be closed by this pull request
@eduardodfmex
Copy link
Contributor Author

I need to run a final terraform apply and destroy.

@eduardodfmex eduardodfmex self-assigned this Apr 25, 2025
Eduardo Sanchez and others added 14 commits April 25, 2025 13:29
…cy resources for encryption and network injection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example Resource "powerplatform_enterprise_policy" dosen't work
1 participant