Suppressing NSG Rules for Subnets #2529
-
I'm trying to suppress the UseNSGs rule for a subset of subnets in a VNet. if: I don't want to use properties.subnet[0] etc given I do not know a) how many subnets the VNet will always have How can I achieve the desired outcome? |
Beta Was this translation helpful? Give feedback.
Answered by
BernieWhite
Dec 5, 2023
Replies: 1 comment 8 replies
-
@paulmccrady Try something like this: if:
allOf:
- type: .
equals: 'Microsoft.Network/virtualNetworks'
- field: properties.subnets[*]
allOf:
- field: name
contains:
- 'aks-snet'
- 'aks2-snet'
- 'aksapi-snet' |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@paulmccrady Would providing an option configure custom subnet (exact) names to the excluded list similar to the Microsoft ones as above address the issue?
i.e.