iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔄

Errors when Purging Azure Front Door and CDN Endpoints

に公開

Introduction

I host my website using Azure Blob Storage's static website feature along with Azure Front Door and CDN. When using GitHub Actions to deploy changes, I need to execute az cdn endpoint purge to reflect those updates.

https://learn.microsoft.com/ja-jp/azure/storage/blobs/storage-blobs-static-site-github-actions

However, under certain conditions, this command fails with the following error:

ERROR: (BadRequest) The requested operation cannot be executed on the entity in the current state.

Solution

Ensure that your Azure Front Door and CDN endpoint are in a running state.

Conclusion

When an Azure subscription is resumed after exceeding its free tier limit, the endpoint remains in a stopped state. While this situation is rare, if you encounter the same issue, please check the status of your endpoint.

Discussion