functions deployed to a manually created Function App are listing, but those deployed to a Terraform-created Function App are not

Nandish V 0 Reputation points
2024-07-03T05:50:27.2+00:00

The functions deployed to a manually created Function App are listing, but those deployed to a Terraform-created Function App are not

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Abiola Akinbade 29,405 Reputation points Volunteer Moderator
    2024-07-03T07:53:39.05+00:00

    Hello Nandish V,

    Thanks for your question.

    I will recommend you use the Azure CLI to write the config of each function.

    az functionapp config show --name <func> --resource-group <rg>
    

    This will compare both. When you see the attribute differences. You can then review your state file or terraform plan to check.

    You can also make the manual change to the tf deployed app and try to import or run a plan to achieve the above as well

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

  2. Iheanacho Chukwu 1,025 Reputation points MVP
    2024-07-08T18:44:41.07+00:00

    As mentioned by @Abiola Akinbade carefully review the configuration of both function apps to identify any configuration discrepancy. You can use the portal to check this, pay attention to runtime, and other settings. If you prefer checking the app setting with az cli, you may use:

    az functionapp config appsettings list --name <FunctionAppName> --resource-group <ResourceGroupName>

    Also, check the Function Apps logs for any errors or warnings that might explain why the functions are not listed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.