Hi @Vinayak Udaykumar SHASTRI-
Instead of the generic ResourceManagementClient, use the client specifically designed for Front Door. This is often found in packages like azure-mgmt-frontdoor or azure-mgmt-network.Look for a client like FrontDoorManagementClient or NetworkManagementClient
Within that client, navigate to operations related to WAF policies. Look for a method like begin_create_or_update.
Initiate the specific client and use the client's get method to fetch the current state of your WAF policy object.
Modify the custom_rules property within the retrieved object in your Python code. Update the match_value list for your 'blocklist' rule.
Use the clients begin_create_or_update method, passing the entire modified policy object back. The service-specific SDK is sometimes better at handling read-only properties correctly during this flow compared to the generic ResourceManagementClient.
For your reference: https://learn.microsoft.com/en-us/powershell/module/az.frontdoor/update-azfrontdoorwafpolicy?view=azps-13.4.0
Kindly let us know if the above helps or you need further assistance on this issue.