File tree 1 file changed +9
-14
lines changed
1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -4,27 +4,21 @@ Consider Azure Shell bash session for following commands:
4
4
5
5
``` shell
6
6
7
- # verify Azure subsctiption
7
+ # verify current Azure subsctiption (it should be ready in Azure Shell)
8
8
az account show --output table
9
9
10
- # Azure environment - VM provisioning
10
+ # Azure environment - Ubuntu LTS VM with public IP provisioning
11
11
. <( curl -s https://raw.githubusercontent.com/mkol5222/appsec-chart/main/setup-vm.sh)
12
12
13
13
# login to new VM
14
- ssh -o StrictHostKeyChecking=no $MY_USERNAME @ $IP_ADDRESS
14
+ sshvm
15
15
# will continue IN PROVISIONED AZURE VM
16
16
```
17
17
18
- On Azure VM:
18
+ Lets continue on Azure VM:
19
19
20
20
``` shell
21
- # avoid need for sudo with microk8s
22
- sudo usermod -a -G microk8s azureuser
23
- newgrp microk8s
24
-
25
- # setup user profile
26
- . <( curl -s https://raw.githubusercontent.com/mkol5222/appsec-chart/main/setup-user.sh)
27
-
21
+ # IN AZURE VM (after sshvm)
28
22
29
23
# ready to deploy AppSec WAF - FOCUS ON INPUTS AND DNS RECORD!!!
30
24
#
@@ -51,7 +45,8 @@ k get po --watch
51
45
Cleanup:
52
46
53
47
``` shell
54
- # when want to remove VM later
55
- az vm delete --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_VM_NAME --yes
56
- az group delete --name $MY_RESOURCE_GROUP_NAME --yes
48
+ # BACK IN AZURE SHELL: when want to remove VM later
49
+ # we store ./destroyvm-<RANDOMID>.sh - look what it does
50
+ ls destroyvm* sh; cat destrouvm* .sh
51
+
57
52
```
You can’t perform that action at this time.
0 commit comments