File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ provider "azurerm" {
2+ skip_provider_registration = true
3+ features {}
4+ }
5+
6+ resource "azurerm_linux_virtual_machine" "my_linux_vm" {
7+ location = " eastus"
8+ name = " test"
9+ resource_group_name = " test"
10+ admin_username = " testuser"
11+ admin_password = " Testpa5s"
12+
13+ size = " Standard_F16s" # <<<<<<<<<< Try changing this to Standard_F16s_v2 to compare the costs
14+
15+ tags = {
16+ Environment = " production"
17+ Service = " web-app"
18+ }
19+
20+ os_disk {
21+ caching = " ReadWrite"
22+ storage_account_type = " Standard_LRS"
23+ }
24+
25+ network_interface_ids = [
26+ " /subscriptions/123/resourceGroups/testrg/providers/Microsoft.Network/networkInterfaces/testnic" ,
27+ ]
28+
29+ source_image_reference {
30+ publisher = " Canonical"
31+ offer = " UbuntuServer"
32+ sku = " 16.04-LTS"
33+ version = " latest"
34+ }
35+ }
36+
37+ resource "azurerm_service_plan" "my_app_service" {
38+ location = " eastus"
39+ name = " test"
40+ resource_group_name = " test_resource_group"
41+ os_type = " Windows"
42+
43+ sku_name = " P1v2"
44+ worker_count = 4 # <<<<<<<<<< Try changing this to 8 to compare the costs
45+
46+ tags = {
47+ Environment = " Prod"
48+ Service = " web-app"
49+ }
50+ }
51+
52+ resource "azurerm_linux_function_app" "my_function" {
53+ location = " eastus"
54+ name = " test"
55+ resource_group_name = " test"
56+ service_plan_id = " /subscriptions/123/resourceGroups/testrg/providers/Microsoft.Web/serverFarms/serverFarmValue"
57+ storage_account_name = " test"
58+ storage_account_access_key = " test"
59+ site_config {}
60+
61+ tags = {
62+ Environment = " Prod"
63+ }
64+ }
You can’t perform that action at this time.
0 commit comments