Skip to content

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

@FinVamp1

Description

@FinVamp1

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 /imagename:tags>

The validation logic at

def _format_fx_version(custom_image_name, container_config_type=None):
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 --resource-group \
--storage-account \
--plan <planName \
--functions-version 3 \
--runtime python \
--os-type Linux \
--deployment-container-image-name imageName:tags \
--assign-identity

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Functionsaz functionappService AttentionThis issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions