Failed to acquire app settings from https:///api/settings with publish-profile

Not sure if something’s changed with Azure Function Apps. I deployed a new Function App today and typically I push changes from GitHub to the Function App via GitHub Actions, but today I ran into the following error:

Turns out it was to do with this setting in the Function App under Configuration > General settings:

Set that to “On” and it will work.