-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathacopio.sh
executable file
·72 lines (51 loc) · 1.63 KB
/
acopio.sh
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
#!/bin/bash
az group create --name cc_resource_group --location eastus
az network vnet create \
--resource-group cc_resource_group \
--name cc_vnet \
--address-prefix 192.168.0.0/16 \
--subnet-name mySubnet \
--subnet-prefix 192.168.1.0/24
az network public-ip create \
--resource-group cc_resource_group \
--name myPublicIP \
--dns-name erseco
az network nsg create \
--resource-group cc_resource_group \
--name cc_network_security_group
az network nsg rule create \
--resource-group cc_resource_group \
--nsg-name cc_network_security_group \
--name cc_network_security_group_RuleSSH \
--protocol tcp \
--priority 1000 \
--destination-port-range 22 \
--access allow
az network nsg rule create \
--resource-group cc_resource_group \
--nsg-name cc_network_security_group \
--name cc_network_security_group_RuleWeb \
--protocol tcp \
--priority 1001 \
--destination-port-range 80 \
--access allow
az network nsg show --resource-group cc_resource_group --name cc_network_security_group
az network nic create \
--resource-group cc_resource_group \
--name cc_nic \
--vnet-name cc_vnet \
--subnet mySubnet \
--public-ip-address myPublicIP \
--network-security-group cc_network_security_group
az vm availability-set create \
--resource-group cc_resource_group \
--name myAvailabilitySet
az vm create \
--resource-group cc_resource_group \
--name myVM \
--location eastus \
--availability-set myAvailabilitySet \
--nics cc_nic \
--image UbuntuLTS \
--admin-username azureuser \
--generate-ssh-keys