Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.83k forks source link

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

Open patrickblanc opened 3 weeks ago

patrickblanc commented 3 weeks ago

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

microsoft-github-policy-service[bot] commented 2 weeks ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.