-
Notifications
You must be signed in to change notification settings - Fork 0
/
Terraform-Test-8.tf
54 lines (46 loc) · 1.31 KB
/
Terraform-Test-8.tf
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
terraform {
backend "local" {}
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.0"
}
}
}
provider "azurerm" {
features {}
}
data "azurerm_resource_group" "example" {
name = "stephyen-resg2" # Modify this to your rg name if needed.
}
resource "azurerm_service_plan" "example" {
name = "stephasp1"
location = data.azurerm_resource_group.example.location
resource_group_name = data.azurerm_resource_group.example.name
os_type = "Linux"
sku_name = "F1"
}
resource "azurerm_linux_web_app" "example" {
name = "stephwebapp1"
resource_group_name = data.azurerm_resource_group.example.name
location = azurerm_service_plan.example.location
service_plan_id = azurerm_service_plan.example.id
https_only = true
# commented out because not sure if correct.
# auth_settings {
# runtime_version = "DOTNETCORE|3.0"
# }
site_config {
always_on = false
ftps_state = "FtpsOnly"
}
identity {
type = "SystemAssigned"
}
}
resource "azurerm_app_service_source_control" "example" {
app_id = azurerm_linux_web_app.example.id
repo_url = " "
branch = "master"
use_manual_integration = true
}