Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add azsdk pipeline subnet list to spring mysql live test arm template
  • Loading branch information
benbp committed Jun 18, 2024
commit 8be12678f69660624d518a8141cd37096d3268f6
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"defaultValue": "[resourceGroup().name]",
"type": "String"
},
"azsdkPipelineSubnetList": {
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Subnets used by azure pipeline VMs. Required for SQL resource access."
}
},
"serverName": {
"type": "string",
"defaultValue": "[concat(parameters('baseName'),'-passwordless-mysql-singleserver-it')]",
Expand Down Expand Up @@ -203,6 +210,22 @@
"endIpAddress": "255.255.255.255"
}
},
{
"copy": {
"name": "serverName_vnetrule",
"count": "[length(parameters('azsdkPipelineSubnetList'))]"
},
"condition": "[variables('notSkipCondition')]",
"type": "Microsoft.DBforMySQL/servers/virtualNetworkRules",
"apiVersion": "2017-12-01",
"name": "[format('{0}/{1}-{2}', parameters('serverName'), 'vnetrule', copyIndex())]",
"properties": {
"virtualNetworkSubnetId": "[parameters('azsdkPipelineSubnetList')[copyIndex()]]"
},
"dependsOn": [
"[resourceId('Microsoft.DBforMySQL/servers', parameters('serverName'))]"
]
},
{
"condition": "[variables('notSkipCondition')]",
"type": "Microsoft.DBforMySQL/servers/securityAlertPolicies",
Expand Down