Thanks for posting your question in the Microsoft Q&A forum.
To resolve this issue, you can take the following steps:
- Verify that the account or service principal has the necessary permissions to update static website settings.
- If the permissions are insufficient, assign the appropriate role to the account or service principal.
- Ensure that any access policies or restrictions that might be impacting the operation are reviewed and adjusted if necessary.
- Check the activity logs in Azure to see if there are any additional details or related errors that might provide more context on the permission issue.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful