diff --git a/pkg/provider/securitygroup/securityrule.go b/pkg/provider/securitygroup/securityrule.go index 481c26f134..28ea08ff5b 100644 --- a/pkg/provider/securitygroup/securityrule.go +++ b/pkg/provider/securitygroup/securityrule.go @@ -100,7 +100,7 @@ func ListSourcePrefixes(r *armnetwork.SecurityRule) []string { func ListDestinationPrefixes(r *armnetwork.SecurityRule) []string { var rv []string - if r.Properties.DestinationAddressPrefix != nil { + if r.Properties.DestinationAddressPrefix != nil && *r.Properties.DestinationAddressPrefix != "" { rv = append(rv, *r.Properties.DestinationAddressPrefix) } if r.Properties.DestinationAddressPrefixes != nil {