tag azure resources with gitlab-ci-test

cloud cleaner removes old enough resources with 'gitlab-ci-test' tag.
This commit is contained in:
Juan Abia 2022-06-29 16:31:11 +02:00 committed by jabia99
parent 08811dd632
commit 8f9bb1bc01
3 changed files with 51 additions and 7 deletions

View file

@ -47,6 +47,9 @@
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2019-07-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"dependsOn": [
"[concat('Microsoft.Network/networkSecurityGroups/', parameters('networkSecurityGroupName'))]",
"[concat('Microsoft.Network/virtualNetworks/', parameters('virtualNetworkName'))]",
@ -77,6 +80,9 @@
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2019-02-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"properties": {
"securityRules": [
{
@ -100,6 +106,9 @@
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2019-09-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"properties": {
"addressSpace": {
"addressPrefixes": [
@ -121,6 +130,9 @@
"type": "Microsoft.Network/publicIpAddresses",
"apiVersion": "2019-02-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"properties": {
"publicIpAllocationMethod": "Dynamic"
},
@ -133,6 +145,9 @@
"type": "Microsoft.Compute/images",
"apiVersion": "2019-07-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"properties": {
"hyperVGeneration": "V2",
"storageProfile": {
@ -149,6 +164,9 @@
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2019-07-01",
"location": "[parameters('location')]",
"tags": {
"gitlab-ci-test": "true"
},
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', parameters('networkInterfaceName'))]",
"[concat('Microsoft.Compute/images/', parameters('imageName'))]"