Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion arm/.global/global.module.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ Describe "API version tests [All apiVersions in the template should be 'recent']
}
}

It 'In [<moduleName>] used resource type [<resourceType>] should use on of the recent API version(s). Currently using [<TargetApi>]' -TestCases $TestCases {
It 'In [<moduleName>] used resource type [<resourceType>] should use one of the recent API version(s). Currently using [<TargetApi>]' -TestCases $TestCases {
param(
$moduleName,
$resourceType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module networkInterface_publicIPConfigurations 'nested_networkInterface_publicIP
}
}]

resource networkInterface 'Microsoft.Network/networkInterfaces@2021-03-01' = {
resource networkInterface 'Microsoft.Network/networkInterfaces@2021-05-01' = {
name: networkInterfaceName
location: location
tags: tags
Expand All @@ -73,6 +73,8 @@ resource networkInterface 'Microsoft.Network/networkInterfaces@2021-03-01' = {
subnet: {
id: ipConfiguration.subnetId
}
loadBalancerBackendAddressPools: contains(ipConfiguration, 'loadBalancerBackendAddressPools') ? ipConfiguration.loadBalancerBackendAddressPools : null
applicationSecurityGroups: contains(ipConfiguration, 'applicationSecurityGroups') ? ipConfiguration.applicationSecurityGroups : null
}
}]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@
]
}
]
}
},
"loadBalancerBackendAddressPools": [
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/loadBalancers/adp-<<namePrefix>>-az-lb-internal-001/backendAddressPools/servers"
}
],
"applicationSecurityGroups": [
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/applicationSecurityGroups/adp-<<namePrefix>>-az-asg-x-001"
}
]
}
],
"roleAssignments": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,18 @@
]
}
]
}
},
"loadBalancerBackendAddressPools": [
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/loadBalancers/adp-<<namePrefix>>-az-lb-internal-001/backendAddressPools/servers"
}
],
"applicationSecurityGroups": [
{
"id": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/applicationSecurityGroups/adp-<<namePrefix>>-az-asg-x-001"
}
]

}
],
"roleAssignments": [
Expand Down