-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading message when creating functionapp #8889
Comments
Hi @zikalino, I am unable to reproduce this bug in cloudshell. On running something like- which is expected. Did you have any additional param? On providing a |
@ankitkumarr I can recheck that. perhaps something got updated in a meanwhile. or something is different in my subscription. I think if I haven't specified --plan it was either creating a default one or finding one in the subscription. I am not sure now. |
@zikalino, I think you might have specified \cc @ahmedelnably |
Describe the bug
When creating functionapp you try to specify --deployment-container-image-name httpd without passing --plan that is is_linux, Azure CLI resoponds with following message, which is quite misleading:
usage error: --runtime RUNTIME required for linux functions apps without custom image.
To Reproduce
az group create --name zimsfromclixx --location westeurope
az storage account create --name zimsstoragefromclixx --location westeurope --resource-group zimsfromclixx --sku Standard_LRS
az functionapp create --resource-group zimsfromclixx --os-type Linux --name zimsfromclixx --deployment-container-image-name httpd --storage-account zimsstoragefromclixx
Expected behavior
Argument --deployment-container-image-name should not be just ignored.
The message should be perhaps "Argument --deployment-container-image-name can be only specified with plan that is_linux" or something like this.
Environment summary
CloudShell
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: