Permissions: The user attempting to change the webhook may not have sufficient permissions. Ensure that the user has at least "Contributor" or "Owner" role permissions for the web app.
Resource Locks: There might be a resource lock applied to the web app or the resource group containing it. A "Read-Only" or "Delete" lock would prevent changes to the configuration, including webhooks.
Configuration Settings: The current settings of the web app might not support changing webhooks, or there might be a policy configured at the subscription or resource group level that restricts such changes.
Platform Restrictions: Some Azure services have platform restrictions that may prevent direct changes to certain properties through the Azure Portal or CLI.
Check Permissions: Verify that the account you're using to change the webhook has sufficient permissions. You can check the role assignments in the Azure Portal:
Go to your web app in the Azure Portal.
Click on "Access control (IAM)".
Ensure your account has the appropriate role, such as "Contributor" or "Owner".