question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploying a Function App with --deployment-container-image-name can result in a Function App that will not start.

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug The validation for --deployment-container-image-name can result in a Function App that will start as it sets the LinuxFxVersion correctly.

The linuxFxVersion should be <DockerId>/imagename:tags>

The validation logic at https://github.com/Azure/azure-cli/blob/6c1b085a0910c6c2139006fcbd8ade44006eb6dd/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L1227 doesn’t seem to check this for the Functions scenarios.

To Reproduce

  1. Install the newest Az Cli.
  2. Create a Storage Account, Resource Group and Managed Identity.
  3. Run this command.

az functionapp create --name <appNane> --resource-group <resourceGroupName> \ –storage-account <storageAccountName> \ –plan <planName \ –functions-version 3 \ –runtime python \ –os-type Linux \ –deployment-container-image-name imageName:tags \ –assign-identity <appIdentity>

  1. You will see a Function App that is created but has no Functions and returns a Server error.
  2. The internal logs show the docker pull is failing/
  3. Updating the Linux Fx Version to DockerId/imagename:tags works.

Expected behavior

  1. That the Function App starts.

Environment summary Reproduced using the Azure Cloud Shell.

Additional context https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#change-the-docker-image-of-a-custom-container

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yonzhancommented, Jan 31, 2022

route to CXP team to help with

0reactions
pragnagopacommented, Feb 23, 2022

@zandym - Thanks for the details. I understand the issue better now. Yes, --deployment-container-image-name command should set the linuxFxVersion and should not require user to run another command.

We will add validation if the image is valid or not on the platform.

We’ve tried both Gitlab and Artifactory registries using the same methodology.

For this - please open an issue on https://github.com/Azure/azure-functions-docker with details on the AppName / appx time range. We need to take a look the logs to understand why other registries are not working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az functionapp | Microsoft Learn
Commands to manage Azure Functions app. az functionapp app up. Deploy to Azure Functions via GitHub actions. az functionapp config. Configure a function...
Read more >
What is the equivalent of "az functionapp" in AzureRM?
My deployment script uses PowerShell with the AzureRM module. I am trying to find the equivalent of the following Azure CLI call. That...
Read more >
Beam Hosted - Azure Enablement for Playbooks
Note that a function app with the plan type as Consumption (Serverless) is not supported by Beam. This plan type does not support...
Read more >
Using Azure Arc for Apps - Part 3 - Deploying Azure Functions ...
Notice in the screenshot below that we can deploy an Azure Function as a Docker Container to the App Service Kubernetes Environment (as...
Read more >
Deploying on Azure Functions | fast.ai course v3
With the App Service plan, you can pick the level of computing resources that you want your function to run on. You are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found