Access restriction rule is disables bydefault

I had created a virtual network, subnet id, app service, web app. Using ip_restriction in web app site config.
The issue is that all these modules are created very finely but when it comes to access restriction rules by default it is disabled. I need to enable it by updating the restriction rule. Then only am able to enable the restriction rule, It is not enabling using terraform. Can you help me with this to enable it using terraform code?