-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathresource.tf
More file actions
37 lines (34 loc) · 1.15 KB
/
resource.tf
File metadata and controls
37 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
# Use `scope = "Environment"` to mirror the maker UI environment-level binding.
# In this mode the provider manages the root Dataverse binding and proactively
# enables eligible visible unmanaged solutions in the environment. Built-in
# platform solutions are excluded automatically.
resource "powerplatform_environment" "example" {
display_name = var.environment_display_name
description = "Example environment for validating Dataverse Git integration."
location = var.location
azure_region = var.azure_region
environment_type = "Sandbox"
dataverse = {
language_code = "1033"
currency_code = "USD"
security_group_id = var.security_group_id
}
}
resource "powerplatform_environment_git_integration" "example" {
environment_id = powerplatform_environment.example.id
git_provider = var.git_provider
scope = var.scope
organization_name = var.organization_name
project_name = var.project_name
repository_name = var.repository_name
}