Open sopelt opened 4 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI
Thanks for the feedback, forwarded to App Services team
Taking a look at this.
We need first class support for Linux on our commands for this to work.
This is still an issue more than 6 months later.
@rtaylor72 yes unfortunately it is. Currently our PS commands don't support Linux adding the Linux PM to comment @btardif
I'm running Windows and it is not working there either. On top of that, even with the "workaround", that is not working either. The container keeps defaulting to "private registry" or "docker hub", and never "ACR". The container logs error when trying to download, so no clue why it is broken. Is our only option to manually create Linux container app services since powershell is not working?!?
Linux Apps are currently not supported through App Service PowerShell experience.
As a point in time workaround you have 2 options:
This is in our backlog and it's something we are looking to enable in the future.
Linux Apps are currently not supported through App Service PowerShell experience.
As a point in time workaround you have 2 options:
- You can workaround this through ARM templates
- Consider using the Azure CLI
This is in our backlog and it's something we are looking to enable in the future.
Any ETA on PowerShell supportability?
Have you tried using Cli in the same operation: https://docs.microsoft.com/en-us/cli/azure/webapp/container?view=azure-cli-latest
Have you tried using Cli in the same operation: https://docs.microsoft.com/en-us/cli/azure/webapp/container?view=azure-cli-latest
No. @dcaro @mikefrobbins , Should the cmdlet reference be updated saying that the -ContainerImageName
parameter isn't supported for Linux container WebApp deployment?
@btardif this was assigned to you since this is regarding Linux support on Powershell, for which we need to the App Service Linux team to help/comment. Thanks!
Any update? Has it been 2 years?
@sopelt Apologies for the delay. We are looking into this ask and we will update this thread once we have more details on this.
@panchagnula @btardif @seligj95 This github thread has been idle while we were waiting for the update on the ask. Could you please let us know if there has been any progress on this ? Any ETA on when the Linux support will be added for the New-AzWebApp PS ? Awaiting your reply
Same, update please. Should be Linux first by now, really.
Hard to believe this has been open for over 2.5 years for such a basic ask.
This is a gotcha and could waste a lot of time for people following tutorials on MS Learn etc. It cost me a few hours until I found this post. If it's not going to be changed, then the MS articles need to change to mention it.
thanks for the work around sopelt
Description
New-AzWebApp (as well as Set-AzWebApp) should allow directly provisioning linux app services from private or public docker images.
Looking at the ARM HTTP requests it looks like the
LinuxFxVersion
is not sent and no container image is configured.Looking at the source there seems to be handling for windows container in
New-AzWebApp
but nothing in terms of a Linux-else-case. The source ofSet-AzWebApp
seems to have code for this case and settingContainerImageName
afterwards works.Steps to reproduce
Environment data
Module versions
Debug output
(I removed some IDs/credentials.)
Error output
There is no visible error. The resulting app service is just lacking the container provisioning and is just an default/empty app.
Workaround to reach the expected result
Executing the following after my initial sample updates the configuration to the expected result:
Output