Skip to content

Commit

Permalink
batch default deny
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Oct 29, 2023
1 parent baa25be commit 396761f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avm/res/batch/batch-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ resource batchAccount 'Microsoft.Batch/batchAccounts@2022-06-01' = {
} : null
networkProfile: !empty(networkProfile ?? {}) ? {
accountAccess: !empty(accountAccessNetworkProfileIpRules) ? {
defaultAction: networkProfile.?accountAccess.?defaultAction
defaultAction: networkProfile.?accountAccess.?defaultAction ?? 'Deny'
ipRules: accountAccessNetworkProfileIpRules
} : null
nodeManagementAccess: !empty(nodeManagementAccessNetworkProfileIpRules) ? {
defaultAction: networkProfile.?nodeManagementAccess.?defaultAction
defaultAction: networkProfile.?nodeManagementAccess.?defaultAction ?? 'Deny'
ipRules: nodeManagementAccessNetworkProfileIpRules
} : null
} : null
Expand Down Expand Up @@ -414,7 +414,7 @@ type networkProfileType = {

type endpointAccessProfileType = {
@description('Optional. Default action for endpoint access.')
defaultAction: ('Allow' | 'Deny' | null)?
defaultAction: ('Allow' | 'Deny')?

@description('Optional. Array of IP ranges to filter client IP address.')
allowedIpRules: array?
Expand Down

0 comments on commit 396761f

Please sign in to comment.