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
- Install the newest Az Cli.
- Create a Storage Account, Resource Group and Managed Identity.
- 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
- You will see a Function App that is created but has no Functions and returns a Server error.
- The internal logs show the docker pull is failing/
- Updating the Linux Fx Version to DockerId/imagename:tags works.
Expected behavior
- 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
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
azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py
Line 1227 in 6c1b085
To Reproduce
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
Expected behavior
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