Please do not forget to "Accept the answer" if the information provided helps you to help others in the community.
Hello @Diem Nguyen
To update the rewriteRuleSets for an existing Application Gateway using Bicep, you dont need to declare an existing resource block for the resource, since there is no child resource or module available for managing Application Gateway rewriteRules.
You must declare the entire resource block to include the updated rules directly within the Application Gateway resource bicep template.
Refer to the documentation on: