Skip to content

New-AzWebApp based on Container Image is not working ! #26094

Open
@patrickblanc

Description

@patrickblanc

Description

I want to create a new azure web app based on a container image. To do this, i used the New-AzWebApp cmdlet, but i tried the make it work and to find out what was wrong today, at the end it seems the problem is the cmdlet itself.

The cmd New-AzWebApp is not throwing error, the web app is created, but the web app is created in a strange way, and is actually not pulling the container image i set.

Here is the pwsh cmdlet i am using

New-AzWebApp -ResourceGroupName ResourceGroupName -Name WebAppName -AppServicePlan WebAppPlan -ContainerImageName "one/image:latest"

Here is the details of the created web app

image

If i configure the logs, i can see that it does not pull the correct image at all.

2024-09-13T15:03:09.8072622Z Pulling image: appsvc/kudulite:bullseye_20240822.2.tuxprod.

Then i gave a try using the Azure CLI by running the same cmd

az webapp create --resource-group ResourceGroupName --plan WebAppName --name WebAppName --deployment-container-image-name one/image:latest

image

As you can see the web app properties is here correct. Image information, publishing model. If i go to the logs, i can see the app is pulling the image i specified and not another one.

Issue script & Debug output

not relevant you can reproduce it

Environment data

PSVersion                      7.4.5
PSEdition                      Core
GitCommitId                    7.4.5
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Az.Websites 3.2.1

Error output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    App Servicesaka WebSitesService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions