It seems when the service principal has multiple subscriptions available, the function app is not found if it is not in the default subscription.
The action should search all subscriptions, support specifying a subscription ID, or have the documentation state the limitation and workaround with az acount set --subscription.