Your example is misleading.
With the below,
- xxx.226.xx0.0/24, xxx.226.xx3.0/24, xxx.226.xx1.0/24
- I can see the 3rd Octet changing.
- For this, you have to specify the NSG rule as xxx.226.0.0/16
However, with
- xxx.94.189.158
- Even the second octet changes (here it is 94)
- In these cases, you should use xxx.0.0.0/8
- Or if this is only one IP with a different second octet, you can simply create a new Allow rule with xxx.94.189.158/32 (allow single IP)
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil