add azure function
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2022-05-17 19:48:03 +02:00
parent a44b84f0b4
commit 10b2628e59
1 changed files with 26 additions and 0 deletions

26
azure-functionapps.tf Normal file
View File

@ -0,0 +1,26 @@
resource "azurerm_storage_account" "sa-hanyadikhet-functionapp" {
name = "sa-hanyadikhet-functionapp"
resource_group_name = azurerm_resource_group.rg-hanyadikhet-functionapp.name
location = azurerm_resource_group.rg-hanyadikhet-functionapp.location
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_service_plan" "sp-hanyadikhet-functionapp" {
name = "sp-hanyadikhet-functionapp"
resource_group_name = azurerm_resource_group.rg-hanyadikhet-functionapp.name
location = azurerm_resource_group.rg-hanyadikhet-functionapp.location
os_type = "Linux"
sku_name = "FREE"
}
resource "azurerm_linux_function_app" "fa-hanyadikhet" {
name = "fa-hanyadikhet"
resource_group_name = azurerm_resource_group.rg-hanyadikhet-functionapp.name
location = azurerm_resource_group.rg-hanyadikhet-functionapp.location
storage_account_name = azurerm_storage_account.sa-hanyadikhet-functionapp.name
service_plan_id = azurerm_service_plan.sp-hanyadikhet-functionapp.id
site_config {}
}