Skip to content

Commit

Permalink
azurerm_storage_account_network_rules - Do not check bypass durin…
Browse files Browse the repository at this point in the history
…g "existance" check
  • Loading branch information
magodo committed Dec 17, 2022
1 parent 252e163 commit a4bea1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ func checkForNonDefaultStorageAccountNetworkRule(rule *storage.NetworkRuleSet) b
return false
}

// THe default action "Allow" is set in the creation of the storage account resource as default value.
if (rule.IPRules != nil && len(*rule.IPRules) != 0) ||
(rule.VirtualNetworkRules != nil && len(*rule.VirtualNetworkRules) != 0) ||
rule.Bypass != "AzureServices" || rule.DefaultAction != "Allow" {
rule.DefaultAction != "Allow" {
return true
}

Expand Down

0 comments on commit a4bea1c

Please sign in to comment.