-
Notifications
You must be signed in to change notification settings - Fork 37
/
azure.yaml
94 lines (94 loc) · 2.73 KB
/
azure.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
# You will need to authenticate with Azure using the "az login" command
steps:
resource_group:
returns:
resource_group_name: name
resource: AzureRM::Resource_group
value:
name: lyra
location: ukwest
tags:
environment: "Lyra Example"
virtual_network:
returns:
virtual_network_name: name
resource: AzureRM::Virtual_network
value:
name: lyraVnet
address_space: [10.0.0.0/16]
location: ukwest
resource_group_name: $resource_group_name
subnet:
returns: subnet_id
resource: AzureRM::Subnet
value:
name: lyraSubnet
resource_group_name: $resource_group_name
virtual_network_name: $virtual_network_name
address_prefix: 10.0.1.0/24
public_ip:
returns: public_ip_id
resource: AzureRM::Public_ip
value:
name: lyraPublicIP
location: ukwest
resource_group_name: $resource_group_name
allocation_method: dynamic
network_security_group:
returns: network_security_group_id
resource: AzureRM::Network_security_group
value:
name: lyraNetworkSecurityGroup
location: ukwest
resource_group_name: $resource_group_name
security_rule:
- name: SSH
priority: 1001
direction: Inbound
access: Allow
protocol: Tcp
source_port_range: "*"
destination_port_range: "22"
source_address_prefix: "*"
destination_address_prefix: "*"
network_interface:
returns: network_interface_id
resource: AzureRM::Network_interface
value:
name: lyraNIC
location: ukwest
resource_group_name: $resource_group_name
network_security_group_id: $network_security_group_id
ip_configuration:
- name: lyraNicConfiguration
subnet_id: $subnet_id
private_ip_address_allocation: dynamic
public_ip_address_id: $public_ip_id
virtual_machine:
resource: AzureRM::Virtual_machine
value:
name: lyraVirtualMachine
location: UK West
resource_group_name: $resource_group_name
network_interface_ids: [$network_interface_id]
vm_size: Standard_B1s
storage_image_reference:
publisher: Canonical
offer: UbuntuServer
sku: 18.04-LTS
version: latest
storage_os_disk:
name: lyraosdisk1
caching: ReadWrite
create_option: FromImage
managed_disk_type: Standard_LRS
os_profile:
computer_name: hostname
admin_username: testadmin
admin_password: Password1234!
os_profile_linux_config:
disable_password_authentication: false
tags:
environment: lyra-test
delete_os_disk_on_termination: true
delete_data_disks_on_termination: true