Skip to content

Commit 057a033

Browse files
committed
terraform fmt
1 parent 91b12bb commit 057a033

File tree

4 files changed

+142
-142
lines changed

4 files changed

+142
-142
lines changed
Lines changed: 109 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,125 @@
1-
resource "azurerm_public_ip" "azure_bastion" {
2-
name = "pip-azure-bastion"
3-
location = azurerm_resource_group.default.location
4-
resource_group_name = azurerm_resource_group.default.name
5-
allocation_method = "Static"
6-
sku = "Standard"
1+
resource "azurerm_public_ip" "azure_bastion" {
2+
name = "pip-azure-bastion"
3+
location = azurerm_resource_group.default.location
4+
resource_group_name = azurerm_resource_group.default.name
5+
allocation_method = "Static"
6+
sku = "Standard"
77
}
88

9-
resource "azurerm_network_security_group" "bastion_nsg" {
10-
name = "nsg-bastion"
11-
location = azurerm_resource_group.default.location
12-
resource_group_name = azurerm_resource_group.default.name
9+
resource "azurerm_network_security_group" "bastion_nsg" {
10+
name = "nsg-bastion"
11+
location = azurerm_resource_group.default.location
12+
resource_group_name = azurerm_resource_group.default.name
1313

14-
security_rule {
15-
name = "AllowHTTPSInbound"
16-
priority = 100
17-
direction = "Inbound"
18-
access = "Allow"
19-
protocol = "Tcp"
20-
source_port_range = "*"
21-
destination_port_range = "443"
22-
source_address_prefix = "Internet"
23-
destination_address_prefix = "*"
24-
}
25-
security_rule {
26-
name = "AllowGatewayManagerInbound"
27-
priority = 200
28-
direction = "Inbound"
29-
access = "Allow"
30-
protocol = "Tcp"
31-
source_port_range = "*"
32-
destination_port_range = "443"
33-
source_address_prefix = "GatewayManager"
34-
destination_address_prefix = "*"
35-
}
36-
security_rule {
37-
name = "AllowAzureLBInbound"
38-
priority = 300
39-
direction = "Inbound"
40-
access = "Allow"
41-
protocol = "Tcp"
42-
source_port_range = "*"
43-
destination_port_range = "443"
44-
source_address_prefix = "AzureLoadBalancer"
45-
destination_address_prefix = "*"
46-
}
47-
security_rule {
48-
name = "AllowBastionHostCommunication"
49-
priority = 400
50-
direction = "Inbound"
51-
access = "Allow"
52-
protocol = "*"
53-
source_port_range = "*"
54-
destination_port_ranges = ["5701","8080"]
55-
source_address_prefix = "VirtualNetwork"
56-
destination_address_prefix = "VirtualNetwork"
57-
}
58-
security_rule {
59-
name = "AllowRdpSshOutbound"
60-
priority = 100
61-
direction = "Outbound"
62-
access = "Allow"
63-
protocol = "Tcp"
64-
source_port_range = "*"
65-
destination_port_ranges = ["22", "3389"]
66-
source_address_prefix = "*"
67-
destination_address_prefix = "VirtualNetwork"
68-
}
69-
security_rule {
70-
name = "AllowBastionHostCommunicationOutbound"
71-
priority = 110
72-
direction = "Outbound"
73-
access = "Allow"
74-
protocol = "Tcp"
75-
source_port_range = "*"
76-
destination_port_ranges = ["5701", "8080"]
77-
source_address_prefix = "VirtualNetwork"
78-
destination_address_prefix = "VirtualNetwork"
14+
security_rule {
15+
name = "AllowHTTPSInbound"
16+
priority = 100
17+
direction = "Inbound"
18+
access = "Allow"
19+
protocol = "Tcp"
20+
source_port_range = "*"
21+
destination_port_range = "443"
22+
source_address_prefix = "Internet"
23+
destination_address_prefix = "*"
7924
}
80-
security_rule {
81-
name = "AllowAzureCloudOutbound"
82-
priority = 120
83-
direction = "Outbound"
84-
access = "Allow"
85-
protocol = "Tcp"
86-
source_port_range = "*"
87-
destination_port_ranges = ["443"]
88-
source_address_prefix = "*"
89-
destination_address_prefix = "AzureCloud"
90-
}
91-
security_rule {
92-
name = "AllowGetSessionInformation"
93-
priority = 130
94-
direction = "Outbound"
95-
access = "Allow"
96-
protocol = "Tcp"
97-
source_port_range = "*"
98-
destination_port_ranges = ["80"]
99-
source_address_prefix = "*"
100-
destination_address_prefix = "Internet"
101-
}
102-
25+
security_rule {
26+
name = "AllowGatewayManagerInbound"
27+
priority = 200
28+
direction = "Inbound"
29+
access = "Allow"
30+
protocol = "Tcp"
31+
source_port_range = "*"
32+
destination_port_range = "443"
33+
source_address_prefix = "GatewayManager"
34+
destination_address_prefix = "*"
35+
}
36+
security_rule {
37+
name = "AllowAzureLBInbound"
38+
priority = 300
39+
direction = "Inbound"
40+
access = "Allow"
41+
protocol = "Tcp"
42+
source_port_range = "*"
43+
destination_port_range = "443"
44+
source_address_prefix = "AzureLoadBalancer"
45+
destination_address_prefix = "*"
46+
}
47+
security_rule {
48+
name = "AllowBastionHostCommunication"
49+
priority = 400
50+
direction = "Inbound"
51+
access = "Allow"
52+
protocol = "*"
53+
source_port_range = "*"
54+
destination_port_ranges = ["5701", "8080"]
55+
source_address_prefix = "VirtualNetwork"
56+
destination_address_prefix = "VirtualNetwork"
57+
}
58+
security_rule {
59+
name = "AllowRdpSshOutbound"
60+
priority = 100
61+
direction = "Outbound"
62+
access = "Allow"
63+
protocol = "Tcp"
64+
source_port_range = "*"
65+
destination_port_ranges = ["22", "3389"]
66+
source_address_prefix = "*"
67+
destination_address_prefix = "VirtualNetwork"
68+
}
69+
security_rule {
70+
name = "AllowBastionHostCommunicationOutbound"
71+
priority = 110
72+
direction = "Outbound"
73+
access = "Allow"
74+
protocol = "Tcp"
75+
source_port_range = "*"
76+
destination_port_ranges = ["5701", "8080"]
77+
source_address_prefix = "VirtualNetwork"
78+
destination_address_prefix = "VirtualNetwork"
79+
}
80+
security_rule {
81+
name = "AllowAzureCloudOutbound"
82+
priority = 120
83+
direction = "Outbound"
84+
access = "Allow"
85+
protocol = "Tcp"
86+
source_port_range = "*"
87+
destination_port_ranges = ["443"]
88+
source_address_prefix = "*"
89+
destination_address_prefix = "AzureCloud"
90+
}
91+
security_rule {
92+
name = "AllowGetSessionInformation"
93+
priority = 130
94+
direction = "Outbound"
95+
access = "Allow"
96+
protocol = "Tcp"
97+
source_port_range = "*"
98+
destination_port_ranges = ["80"]
99+
source_address_prefix = "*"
100+
destination_address_prefix = "Internet"
101+
}
102+
103103
}
104104

105105
resource "azurerm_subnet_network_security_group_association" "bastion_nsg_assoc" {
106106
subnet_id = azurerm_subnet.azure_bastion.id
107107
network_security_group_id = azurerm_network_security_group.bastion_nsg.id
108-
depends_on = [
109-
azurerm_bastion_host.azure_bastion_instance
110-
]
108+
depends_on = [
109+
azurerm_bastion_host.azure_bastion_instance
110+
]
111111
}
112112

113113

114114
resource "azurerm_bastion_host" "azure_bastion_instance" {
115-
name = "bas-${var.name}-${var.environment}"
116-
location = azurerm_resource_group.default.location
117-
resource_group_name = azurerm_resource_group.default.name
115+
name = "bas-${var.name}-${var.environment}"
116+
location = azurerm_resource_group.default.location
117+
resource_group_name = azurerm_resource_group.default.name
118118

119-
ip_configuration {
120-
name = "configuration"
121-
subnet_id = azurerm_subnet.azure_bastion.id
122-
public_ip_address_id = azurerm_public_ip.azure_bastion.id
123-
}
119+
ip_configuration {
120+
name = "configuration"
121+
subnet_id = azurerm_subnet.azure_bastion.id
122+
public_ip_address_id = azurerm_public_ip.azure_bastion.id
123+
}
124124
}
125125

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
resource "azurerm_network_interface" "dsvm" {
2-
name = "nic-${var.dsvm_name}"
3-
location = azurerm_resource_group.default.location
4-
resource_group_name = azurerm_resource_group.default.name
5-
6-
ip_configuration {
7-
name = "configuration"
8-
subnet_id = azurerm_subnet.snet-dsvm.id
9-
private_ip_address_allocation = "Dynamic"
10-
}
1+
resource "azurerm_network_interface" "dsvm" {
2+
name = "nic-${var.dsvm_name}"
3+
location = azurerm_resource_group.default.location
4+
resource_group_name = azurerm_resource_group.default.name
5+
6+
ip_configuration {
7+
name = "configuration"
8+
subnet_id = azurerm_subnet.snet-dsvm.id
9+
private_ip_address_allocation = "Dynamic"
10+
}
1111
}
1212

1313
resource "azurerm_windows_virtual_machine" "dsvm" {
14-
name = var.dsvm_name
15-
location = azurerm_resource_group.default.location
16-
resource_group_name = azurerm_resource_group.default.name
14+
name = var.dsvm_name
15+
location = azurerm_resource_group.default.location
16+
resource_group_name = azurerm_resource_group.default.name
1717
network_interface_ids = [
18-
azurerm_network_interface.dsvm.id
19-
]
20-
size = "Standard_DS3_v2"
21-
18+
azurerm_network_interface.dsvm.id
19+
]
20+
size = "Standard_DS3_v2"
21+
2222
source_image_reference {
2323
publisher = "microsoft-dsvm"
2424
offer = "dsvm-win-2019"
2525
sku = "server-2019"
2626
version = "latest"
2727
}
28-
28+
2929
os_disk {
30-
name = "osdisk-${var.dsvm_name}"
31-
caching = "ReadWrite"
30+
name = "osdisk-${var.dsvm_name}"
31+
caching = "ReadWrite"
3232
storage_account_type = "Premium_LRS"
3333
}
34-
34+
3535
identity {
3636
type = "SystemAssigned"
3737
}
38-
computer_name = var.dsvm_name
39-
admin_username = var.dsvm_admin_username
40-
admin_password = var.dsvm_host_password
41-
38+
computer_name = var.dsvm_name
39+
admin_username = var.dsvm_admin_username
40+
admin_password = var.dsvm_host_password
41+
4242
provision_vm_agent = true
43-
43+
4444
timeouts {
45-
create = "60m"
46-
delete = "2h"
45+
create = "60m"
46+
delete = "2h"
4747
}
4848
}

quickstart/201-machine-learning-moderately-secure/network.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ resource "azurerm_subnet" "snet-dsvm" {
3939
}
4040

4141
resource "azurerm_subnet" "azure_bastion" {
42-
name = "AzureBastionSubnet"
43-
resource_group_name = azurerm_resource_group.default.name
44-
virtual_network_name = azurerm_virtual_network.default.name
45-
address_prefixes = var.bastion_subnet_address_space
42+
name = "AzureBastionSubnet"
43+
resource_group_name = azurerm_resource_group.default.name
44+
virtual_network_name = azurerm_virtual_network.default.name
45+
address_prefixes = var.bastion_subnet_address_space
4646
}
4747

4848
# Private DNS Zones

quickstart/201-machine-learning-moderately-secure/workspace.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "azurerm_machine_learning_workspace" "default" {
6363
# Args of use when using an Azure Private Link configuration
6464
public_network_access_enabled = false
6565
image_build_compute_name = var.image_build_compute_name
66-
depends_on = [
66+
depends_on = [
6767
azurerm_private_endpoint.kv_ple,
6868
azurerm_private_endpoint.st_ple_blob,
6969
azurerm_private_endpoint.storage_ple_file,

0 commit comments

Comments
 (0)