Skip to content

Commit 4c2ba65

Browse files
committed
self-hosted-runners: mark all dependent resources for deletion
The network security group and the virtual network resources are currently left behind when deleting the VM. Let's mark them up for deletion together with the VM that depends on these resources. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9f692f6 commit 4c2ba65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

azure-self-hosted-runners/azure-arm-template.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
"apiVersion": "2019-02-01",
152152
"location": "[parameters('location')]",
153153
"properties": {
154+
"deleteOption": "[parameters('nicDeleteOption')]",
154155
"securityRules": "[parameters('networkSecurityGroupRules')]"
155156
}
156157
},
@@ -160,6 +161,7 @@
160161
"apiVersion": "2020-11-01",
161162
"location": "[parameters('location')]",
162163
"properties": {
164+
"deleteOption": "[parameters('nicDeleteOption')]",
163165
"addressSpace": {
164166
"addressPrefixes": "[parameters('addressPrefixes')]"
165167
},

0 commit comments

Comments
 (0)