-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprovider.tf
More file actions
95 lines (73 loc) · 2.13 KB
/
provider.tf
File metadata and controls
95 lines (73 loc) · 2.13 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Configure desired versions of terraform, azurerm provider
terraform {
backend "local" {
path = "terraform.tfstate"
}
}
terraform {
required_version = ">= 1.6.0, < 2.0.0"
required_providers {
azapi = {
source = "Azure/azapi"
version = "2.8.0"
}
azuread = {
source = "hashicorp/azuread"
version = "3.8.0"
}
azurerm = {
source = "hashicorp/azurerm"
version = "4.64.0"
}
modtm = {
source = "Azure/modtm"
version = "~> 0.3.2"
}
powerplatform = {
source = "microsoft/power-platform"
version = "4.1.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.8.0"
}
time = {
source = "hashicorp/time"
version = "0.13.1"
}
azurecaf = {
source = "aztfmod/azurecaf"
version = "1.2.31"
}
}
}
# Enable features for azurerm
provider "azurerm" {
features {
key_vault {
purge_soft_delete_on_destroy = false
}
resource_group {
prevent_deletion_if_contains_resources = false
}
}
# Keep Azure AD authentication for storage
storage_use_azuread = true
# partner_id enables anonymous telemetry that helps us justify ongoing investment in maintaining and improving this template.
# Keeping this line supports the project and future feature development. To opt out of telemetry, simply remove the line below.
partner_id = "acce1e78-90a1-4306-89d1-a03ed6284007"
}
provider "azapi" {
# partner_id enables anonymous telemetry that helps us justify ongoing investment in maintaining and improving this template.
# Keeping this line supports the project and future feature development. To opt out of telemetry, simply remove the line below.
partner_id = "acce1e78-90a1-4306-89d1-a03ed6284007"
}
# Access client_id, tenant_id, subscription_id and object_id configuration values
data "azurerm_client_config" "current" {}
# Configure Power Platform provider
provider "powerplatform" {
# PowerPlatform provider will use the same credentials as Azure provider by default
use_cli = true
}