Skip to content

Commit

Permalink
after additional testing, the second string() was not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Donovan authored and Joshua Donovan committed Jan 24, 2024
1 parent 060f3e7 commit 19240b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"where": {
"allOf": [
{
"value": "[string( split( string( field('Microsoft.Network/virtualNetworks/virtualNetworkPeerings[*].remoteVirtualNetwork.id') ), '/' )[2]) ]",
"value": "[ split( string( field('Microsoft.Network/virtualNetworks/virtualNetworkPeerings[*].remoteVirtualNetwork.id') ), '/' )[2] ]",
"in": "[parameters('hubSubscriptions')]"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"metadata": {
"displayName": "(Optional) Hub Subscription IDs",
"description": "An array of subscriptionIDs to which VNETs are peered; will cause the policy to only evaluate VNETs associated directly with your hubs."
}
},
"defaultValue": []
},
"effect": {
"type": "String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"where": {
"allOf": [
{
"value": "[split(field('Microsoft.Network/virtualNetworks/virtualNetworkPeerings[*].remoteVirtualNetwork.id'), '/')[2]]",
"value": "[ split( string( field('Microsoft.Network/virtualNetworks/virtualNetworkPeerings[*].remoteVirtualNetwork.id') ), '/' )[2] ]",
"in": "[parameters('hubSubscriptions')]"
}
]
Expand Down

0 comments on commit 19240b4

Please sign in to comment.